Skip to content

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 requested a review from langermank 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
@github-actions github-actions bot temporarily deployed to Storybook Preview August 11, 2022 16:19 Inactive
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.

4 participants