feat(a11y): add aria-labels to various buttons#890
feat(a11y): add aria-labels to various buttons#890xyhhx wants to merge 1 commit intodesec-io:mainfrom
Conversation
peterthomassen
left a comment
There was a problem hiding this comment.
This is good stuff, thanks!
Overall, I was wondering whether it's possible to reduce the duplication, by somehow telling it that aria-label should have the same value as the element's inner text node. Is that possible? And if so, does it make sense to do it?
5a77565 to
36d2697
Compare
Good idea. I'm not sure if it's possible, I can look around; but I do think that at least for some places it does make sense! |
Looking more into this, I'm not even sure every button needs According to MDN
According to the W3C, the accessible name can be automatically derived from the visible text of a button/link/etc:
So maybe I should review this PR and actually remove any occurrences where the |
Yes, I think so! |
Affects #472