You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Place aria-hidden="true" on the icon and provide a visually-hidden text element alongside it.
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.
The text was updated successfully, but these errors were encountered:
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:aria-hidden="true"
on the icon and provide a visually-hidden text element alongside it.title
attribute to the icon.I personally prefer option 2, but it wasn't as frequently mentioned as a solution in my brief search.
The text was updated successfully, but these errors were encountered: