3 ms·
That would be the label of a button yes. I think in practice, what's missing is describing the label of a button (or another element with that role) with an ari
by ridem 3y ago
That would be the label of a button yes. I think in practice, what's missing is describing the label of a button (or another element with that role) with an aria-label attribute.
Buttons that miss a label are often an icon without text and label (e.g. a delete button with a trash icon).
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role#description https://developer.mozilla.org/en-US/docs/Web/Accessibility/A...
- 6gvONxR4sf7o 3y agoThanks for the explanation!
- kalensh 3y agoThe lawsuit worthy aspect is that labels for buttons are super important for understanding what a button does. A lack of labels (either through not putting text inside the <button> element or using a technique like aria-label) can quickly make an interface unusable for a blind person - the visual equivalent would be completely blank, identical buttons. That barrier is what someone could sue over.
- xigoi 3y agoIt can also quickly make an interface unusable for a non-blind person, if they block external fonts.