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

SVG tags should be accessible #38

Closed
wch opened this issue Mar 1, 2021 · 1 comment · Fixed by #41
Closed

SVG tags should be accessible #38

wch opened this issue Mar 1, 2021 · 1 comment · Fixed by #41

Comments

@wch
Copy link
Collaborator

wch commented Mar 1, 2021

See "Better Accessibility" section in https://www.irigoyen.dev/blog/2021/02/17/stop-using-icon-fonts/

Some other resources:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Role_Img
https://www.deque.com/blog/creating-accessible-svgs/
https://www.tpgi.com/using-aria-enhance-svg-accessibility/

Maybe also allow users to pass in a title/tooltip/description. This is sort of orthogonal to accessibility per se, but could be handy for tooltips. For example:

icon("question", title = "This thing does x, y, z")
@rich-iannone
Copy link
Member

rich-iannone commented Mar 2, 2021

The Font Awesome Accessibility documentation has a lot of great information: https://fontawesome.com/how-to-use/on-the-web/other-topics/accessibility

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

Successfully merging a pull request may close this issue.

2 participants