Open schalkneethling opened 6 years ago
Resolving this PR would mean going through all our SVGs and ...
role="img"
on the <svg>
element.<title>
element inside it with an appropriate title text.role="presentation"
on SVG child elements like <circle>
.But probably we can ignore <svg>
s that have aria-hidden="true"
.
Note that we have meanwhile used role="none"
on some purely decorative SVGs.
After reading the tip Chris Mills recently learned with regards to setting role=img on an SVG, I did some more reading and found some additional things we can do to improve the a11y of our SVG images.
This means updating the current SVG elements of the icon system to make proper use of:
<title>
<description>
(as appropriate)with an id that matches the value of aria-labeledbyMore can be read here: https://developer.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/
Bugzilla
https://bugzilla.mozilla.org/show_bug.cgi?id=1491779