design-react-kit
design-react-kit copied to clipboard
[BUG][ACCESSIBILITA'] Impossibile inserire la property "alt" nei componenti con icone
In tutti i componenti che renderizzano immagini e/o icon, come ad esempio "Icon" e "HeaderBrand" è impossibile inserire l'attributo "alt", rendendo qualsiasi applicazione che usa la libreria non compatibile con lo standard di accessibilità WCAG2AA
Will try to have a look at this 👍
@dej611 working on it 😉
Do you prefer alt
to be mandatory for Icon
components or optional?
I think optional is fine. I think a mandatory prop makes sense to higher level components who use icons with no explicit label.
Ok thanks, I will add a <title></title>
element to src/Icon/assets/It*.tsx
components too, in order to comply with the same accessibility rules