diff --git a/plugin.php b/plugin.php index f8434ea..cd38a84 100644 --- a/plugin.php +++ b/plugin.php @@ -381,7 +381,6 @@ function init_scripts() { let mediaElem = mastodonFeedCreateElement('li', media.type); if('image' == media.type) { let mediaElemImgLink = mastodonFeedCreateElement('a'); - mediaElemImgLink.setAttribute('aria-label', 'Link to Mastodon post'); let imageUrl = media.url; if('full' !== options.images.size && null !== media.preview_url) { imageUrl = media.preview_url; @@ -389,7 +388,6 @@ function init_scripts() { mediaElemImgLink.href = status.url; if('image' === options.images.link) { mediaElemImgLink.href = media.remote_url ?? media.url; - mediaElemImgLink.setAttribute('aria-label', 'Link to Mastodon post image'); } let mediaElemImgImage = mastodonFeedCreateElement('img'); mediaElemImgImage.src = imageUrl; @@ -412,7 +410,6 @@ function init_scripts() { else if('gifv' == media.type) { let mediaElemGifvLink = mastodonFeedCreateElement('a'); mediaElemGifvLink.href = status.url; - mediaElemGifvLink.setAttribute('aria-label', 'Link to Mastodon post'); let mediaElemGifv = mastodonFeedCreateElement('video', 'requiresInteraction'); if(null === media.remote_url) { mediaElemGifv.src = media.url; diff --git a/readme.txt b/readme.txt index 2c73be1..1870c9b 100644 --- a/readme.txt +++ b/readme.txt @@ -161,10 +161,10 @@ in collaboration with @oldrup@mastodon.green Happy [Accesssibility Day](https://accessibility.day) * accessibility (fix): image alt attributes - initial implementation was faulty -* accessibility: added alt text to image / video attachments +* accessibility: added alt text to image / gifv attachments * accessibility: added alt text to avatar images -* accessibility: added descriptive aria-label to links -* accessibility: added aria-label and alt text to preview cards +* accessibility: added alt text to preview card media +* accessibility: added descriptive aria-labels * accessibility: increased default text / background color contrast * accessibility: switched from DIV to semantic OL / LI structure