-
Notifications
You must be signed in to change notification settings - Fork 589
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
Update SegmentedControl to improve the experience for assistive technologies #2220
Conversation
…tyle bug for full-width icon-only buttons, fixes bug for icon-only buttons where onClick and other shared props weren't being passed
🦋 Changeset detectedLatest commit: c7567a0 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.
👍
Confirmed that the SegmentalControl works as expected in the docs preview
I got some feedback on the SegmentedControl interface guidelines PR that
role="toolbar"
didn't feel right for a segmented control (see comment).I brought it up in this week's Accessibility Office Hours, and it was suggested that we change the segmented control from
role="toolbar"
behavior torole="list"/"listitem"
behavior.Screenshots
Before:
https://user-images.githubusercontent.com/2313998/180625732-901564bf-4b2e-4526-a2df-3848fb98d5b3.mp4
After:
https://user-images.githubusercontent.com/2313998/183119490-af7db406-63e5-4395-ba2f-76941691b497.mp4
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.