Skip to content
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

Consider banning aria-hidden on some elements #1190

Closed
aleventhal opened this issue Feb 4, 2020 · 2 comments
Closed

Consider banning aria-hidden on some elements #1190

aleventhal opened this issue Feb 4, 2020 · 2 comments
Milestone

Comments

@aleventhal
Copy link
Contributor

Consider disallowing aria-hidden content on certain elements, such as:
body, html elements (if you need to hide an iframe, you can still put it on the iframe element).

This is one of the places where aria-hidden gets misused, probably because authors may naturally assume that they can put aria-hidden=false on a descendant to unhide it, which does not work.

For example, well-meaning authors trying to keep users inside a role="dialog" and want to hide the rest of the page, may put aria-hidden=true on the body, and aria-hidden=false on the dialog.

@aleventhal
Copy link
Contributor Author

aleventhal commented May 4, 2020

Duplicate of issue #1254

@pkra
Copy link
Member

pkra commented Feb 27, 2021

I think this can be closed as a duplicate.

@pkra pkra closed this as completed Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants