-
Notifications
You must be signed in to change notification settings - Fork 954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aria-hidden="true" should not have display: none !important #1120
Comments
cc @edwelker |
Hi @ducklet, thanks for opening this issue! Can you point us to where you're seeing this rule in the code base? |
Hi @ducklet, I'm curious about this as I really try to make thing accessible as much as possible. Can you show the markup that is causing it to be read by the screen reader? For example:
or something else. |
+1 for this issue. aria-hidden is quite useful to hide content from assistive technology, but not visually (as ducket points out). maybe this should be replaced with the native [hidden] attribute, as that has some older cross browser issues where a display: none!important would be useful. |
Hi @jbrucegsa, The issue is actually not that it will be read by a screen reader, but that I can't use it as intended because the Thanks for looking into it. |
Thanks for all the feedback! I agree with removing that from the CSS, and updating the instances that were relying on that to hide things in favor of something else (i.e. |
Good news, I searched the Draft Standards and the only place using |
@jhfrench Just wanted to note the |
@joshbruce nope, we're all good, I just wanted to reply in response to #1120 (comment). |
Hi,
I'm trying to use Font Awesome icons that are purely decorative and sit next to the text a screen reader needs. Without
aria-hidden="true"
, a screen reader user will hear the same information twice, butaria-hidden="true"
has been given the css ruledisplay: none !important
, which totally defeats its purpose. Can you please fix this? (Sorry it's a .pdf, but WebAIM recommendsaria-hidden="true"
for these icons: http://webaim.org/presentations/2014/myeducator/POUR.pdf)Thanks!
The text was updated successfully, but these errors were encountered: