Repository navigation
fix(example): add accessible names to icon-only buttons on IconButton screen (#5182) - #5195
EnesKartal wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Found potential problems with the pull request:
|
|
#5103 has since rewritten the Icon Button screen, so this needs redoing on the new file rather than a rebase. Five of its buttons already have an |
Motivation
None of the
IconButtons inexample/src/Examples/IconButtonExample.tsxhad anaria-label, so screen readers announced them as just "button" and axe-core reported a criticalbutton-nameviolation. This adds a meaningfularia-labelto each one.Related issue
Fixes #5182
Screenshots / Videos
N/A (accessibility labels only, no visual change)
Test plan
yarn test,yarn typecheckandyarn lintpass./icon-buttonexample screen and check each button has an accessible name.