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

Add aria-hidden="true" attribute #261

Merged
merged 1 commit into from
Sep 11, 2021
Merged

Conversation

neupauer
Copy link
Contributor

This PR add aria-hidden="true" attribute.

Because icons are almost always a purely decorative element, it would be handy to mark them as aria-hidden="true" by default.

They can be re-exposed to Accessibility Tree explicitly later in code if needed ( aria-hidden="false" ).

Resolves #257

Signed-off-by: Peter Neupauer <peter@neupauer.sk>
@adamwathan adamwathan merged commit 14c4c8f into tailwindlabs:master Sep 11, 2021
@adamwathan
Copy link
Member

Nice one, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add aria-hidden="true" by default
2 participants