-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SegmentedControl #2083
SegmentedControl #2083
Conversation
🦋 Changeset detectedLatest commit: 9b2bf73 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 |
// TODO: Change to aria-current or aria-selected? | ||
&[aria-pressed='true'] { |
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.
As the comment says: Is aria-pressed
correct in this case? It's based on this Figma example.
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.
This comment https://github.com/github/primer/issues/762#issuecomment-1144210214 suggests to use aria-current
.
Thanks for the explanation @simurai I think I understand. I'll add these styles to the React and Figma implementations |
I just realized the hover/active background color isn't inset like it is in Primer React
This is now updated to align with PRC. See Storybook |
Ok, I'm gonna merge this "as is". Once we start with the PVC implementation, we can come back and make follow-up PRs if needed. |
What are you trying to accomplish?
This adds the
SegmentedControl
component.👀 Storybook preview.
TODO
What approach did you choose and why?
Implementation is based on (some are internal links):
What should reviewers focus on?
I left a few comments with some open questions.
Can these changes ship as is?