From f84314e170321e0cd80e19d852f1972318d37f9a Mon Sep 17 00:00:00 2001 From: coezbek Date: Fri, 26 Mar 2021 22:20:55 +0100 Subject: [PATCH] When copying link for tiles, also update aria-label with link text (#126) --- assets/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/main.js b/assets/js/main.js index 98da2a2..d9ed255 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -165,6 +165,8 @@ .text('') .addClass('primary') .appendTo($this); + + $x.attr('aria-label', $link.text()); $link = $link.add($x); @@ -349,4 +351,4 @@ }); -})(jQuery); \ No newline at end of file +})(jQuery);