-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(a11y): add aria-labels to various buttons #890
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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