-
Notifications
You must be signed in to change notification settings - Fork 534
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
Only sets aria-labelledby to button label node only if loading
is true
#4450
Conversation
🦋 Changeset detectedLatest commit: d645b29 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
LGTM, will defer to @TylerJDev 👀
Random question, if we are both loading and aria-labelledby
is passed as a prop should we have both or is it okay to just have the id for the container with the loading label?
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.
Looks good! 🎉
Random question, if we are both loading and aria-labelledby is passed as a prop should we have both or is it okay to just have the id for the container with the loading label?
Part of me feels like it should defer to the prop aria-labelledby
if one is available. I'm thinking of icon buttons which don't contain any text content, but are linked to text via aria-labelledby
. An example of this could be the loading state of IconButton
, but if it contained a label that it linked with aria-labelledby
.
Closing this because I'm moving these changes over to a different PR: #4485 |
Changelog
New
N/A
Changed
Button
andIconButton
only usearia-labelledby
to preserve the button label in a loading state OR ifaria-labelledBy
was explicitly passed.Removed
Rollout strategy
Testing & Reviewing
Merge checklist