usnationalarchives / nara-ugfa

NARA User Generated Finding Aids Prototype
1 stars 0 forks source link

Image controls have duplicate alt text #203

Closed lfrancis closed 4 years ago

lfrancis commented 4 years ago

Using the same alt text on adjacent images results in screen readers stuttering as the same text is read out twice. WCAG 2.0 A 1.1.1 Section 508 (2017) A 1.1.1 52 pages Use alt='' for the subsequent adjacent images, or change the redundant alt text.

https://nara-ugfa.herokuapp.com/122668141 Line 171 172 177 178 183 184 189 190 199 200 ...

This seems to be for the image controls:

<img src="/images/openseadragon/zoomin_rest.png" alt="Zoom in" style="background-image: none; background-color: transparent; border: none; margin: 0px; padding: 0px; position: static; background-position: initial initial; background-repeat: initial initial;"> 172

danielboggs commented 4 years ago

I believe this is going to be a FOL due to the OpenSeaDragon plugin powering this image viewer. I believe it wont actually manifest into a real issue as only 1 of these images should be visible (visibly or by screenreaders) at a time. These duplicates are used to provide an alternate asset for hover/active states.

lfrancis commented 4 years ago

Cool, fyi @lizzycederberg in case it comes up during UAT.