Skip to content
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

Segmented control list #2195

Merged
merged 5 commits into from
Aug 11, 2022
Merged

Segmented control list #2195

merged 5 commits into from
Aug 11, 2022

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Aug 9, 2022

What are you trying to accomplish?

The design interface guidelines for the SegmentedControl recently changed to have role="list" instead of role="toolbar" primer/design#276 (comment)

This PR updates the classes to accommodate the new markup.

I'm also dropping the .SegmentedControl-button--selected to only rely on the aria-current attribute. This makes the JS behaviors simpler since there's no need to toggle a class.

Can these changes ship as is?

  • Yes, this PR does not depend on additional changes. 🚢

@changeset-bot
Copy link

changeset-bot bot commented Aug 9, 2022

🦋 Changeset detected

Latest commit: 4ada684

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Patch

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

@github-actions github-actions bot temporarily deployed to Storybook Preview August 9, 2022 22:19 Inactive
@jonrohan jonrohan marked this pull request as ready for review August 10, 2022 02:39
@jonrohan jonrohan requested a review from a team as a code owner August 10, 2022 02:39
@jonrohan jonrohan temporarily deployed to github-pages August 10, 2022 02:45 Inactive
@github-actions github-actions bot temporarily deployed to Storybook Preview August 10, 2022 02:45 Inactive
@jonrohan jonrohan enabled auto-merge (squash) August 11, 2022 16:13
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants