Uh oh!
There was an error while loading. Please reload this page.
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.
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.
This comment https://github.com/github/primer/issues/762#issuecomment-1144210214 suggests to use aria-current.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mperrotti
commented
Jun 20, 2022
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
simurai
commented
Jul 21, 2022
This is now updated to align with PRC. See Storybook |
simurai
commented
Jul 22, 2022
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
SegmentedControlcomponent.👀 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?