tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.33k stars 1.28k forks source link

Add `aria-hidden="true"` attribute #261

Closed neupauer closed 3 years ago

neupauer commented 3 years ago

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

adamwathan commented 3 years ago

Nice one, thanks!