-
Notifications
You must be signed in to change notification settings - Fork 538
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
Button: only add fallback aria-labelledby if aria-label isn't present #4459
Conversation
|
size-limit report 📦
|
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.
Thank you!
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.
wow TIL about the precedence
loading
prop forButton
andIconButton
#3582 in integration tests for release candidate: https://github.com/github/github/pulls?q=is:pr+is:open+head:primer/react-integrationChangelog
In #3582, we introduced an
aria-labelledby
for all instances of Button. This however isn't a good idea whenaria-label
is already present on the instance.aria-labelledby takes precedence over aria-label, so we only want to add a fallback aria-labelledby when aria-label isn't present
Skipping changeset because this is a bug fix for an unreleased PR
Rollout strategy
Testing & Reviewing
Tested with gh/gh by making the changes locally
Merge checklist