-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[SvgIcon] Add aria-hidden #6829
[SvgIcon] Add aria-hidden #6829
Conversation
src/SvgIcon/SvgIcon.js
Outdated
@@ -39,6 +39,7 @@ export default function SvgIcon(props, context) { | |||
<svg | |||
className={className} | |||
viewBox={viewBox} | |||
aria-hidden="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we instead be adding the icon name as its title? What if this was in an Icon button? (Or is it up to the user to meaningfully label the button?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's 20% of the use case following my previous 80%. I agree we miss a title property!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I missed the link in your description. I think this is best for now.
As requested in 80% of the situations, I'm adding it as default. See