This repository has been archived by the owner on Jul 5, 2022. It is now read-only.
Multiple of the same buttons - accessibility issue #837
Labels
accessibility
Issues related to WCAG compliance
Some pages like https://thecodingtrain.com/CodingChallenges/ have multiple buttons with the same text. "Watch on YT" for example. While this works fine it's problematic for accessibility.
One off the most used features of a screen reader is getting a list with all the links on a page.
When users are presented with a bunch of the same text, they are forced to go through the whole page to get a clearer picture.
What I suggest is to add a more detailed description of the link in a span that puts it offscreen.
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
<a href="#"> Watch on YT <span class="sr-only">: Coding challenge #121 - Logo Interpreter</span> </a>
The text was updated successfully, but these errors were encountered: