fly-apps / live_beats

MIT License
1.26k stars 159 forks source link

Set `aria-hidden="true"` on more SVG graphics, and hide icons by default. #13

Closed ndarilek closed 2 years ago

ndarilek commented 2 years ago

The original icon fix assumed that the <svg> tag had an alt attribute, which it does not. Instead, SVG requires a child element to specify a description. A complete fix involves patching upstream to allow for setting this element, but since we don't seem to have actionable icons without associated textual controls, set aria-hidden="true" by default and require it to be overridden if needed.

chrismccord commented 2 years ago

Looks great! Thanks!