Closed shannonsans closed 8 years ago
Would it be preferable to use the screen-reader-text
class instead of sr-only
?
Yes, probably. I think I used the Bootstrap name.
If you don't mind changing that, I can merge and release the update.
Done - thanks Nathan!
Addresses the following:
a:focus
to all link styles that appeared ona:hover
. This allows viewers who navigate the page using a keyboard (instead of a mouse) to see where they are when they tab to the social links.a:focus
, but not ona:hover
. This addition to thea:focus
is because color shouldn't be used alone to indicate a change. (On hover, the mouse cursor changes and this is enough.)<span aria-hidden="true" />
tag so screen readers don't announce it. (Using speak:none on the<a>
tag doesn't work because a link is always announced, so removed that.)<span class="sr-only" />
tag around a plain text description of the icon, and include this in the links. The.sr-only
class hides the text from sighted users but gives assistive technology a label to announce. Without this, a screen reader just announces "Link." each time it reaches an icon -- it doesn't know where the link is going. With the new span, the screen reader announces "Link: Linkedin."Here's a brief video demonstrating the changes: https://youtu.be/mmHJZ5LBAVQ