design-react-kit icon indicating copy to clipboard operation
design-react-kit copied to clipboard

[BUG][ACCESSIBILITA'] Impossibile inserire la property "alt" nei componenti con icone

Open lolgames2012 opened this issue 2 years ago • 4 comments

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

lolgames2012 avatar Jul 31 '22 17:07 lolgames2012

Will try to have a look at this 👍

dej611 avatar Oct 07 '22 08:10 dej611

@dej611 working on it 😉 Do you prefer alt to be mandatory for Icon components or optional?

dennybiasiolli avatar Oct 10 '22 06:10 dennybiasiolli

I think optional is fine. I think a mandatory prop makes sense to higher level components who use icons with no explicit label.

dej611 avatar Oct 10 '22 07:10 dej611

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

dennybiasiolli avatar Oct 10 '22 07:10 dennybiasiolli