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

[Icons]: improve a11y capabilities #443

Open
AlanBreck opened this issue Oct 18, 2023 · 0 comments
Open

[Icons]: improve a11y capabilities #443

AlanBreck opened this issue Oct 18, 2023 · 0 comments

Comments

@AlanBreck
Copy link
Collaborator

As of now, we don't accept any attributes on <Icon> to allow consumers to improve accessibility of the icon. I'm not entirely clear on the ideal approach for a11y with icons, but I've seen two approaches put forward:

  1. Place aria-hidden="true" on the icon and provide a visually-hidden text element alongside it.
  2. Add a title attribute to the icon.

I personally prefer option 2, but it wasn't as frequently mentioned as a solution in my brief search.

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

No branches or pull requests

1 participant