-
Notifications
You must be signed in to change notification settings - Fork 615
SegmentedControl variant prop #2164
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7710793
renders a tooltip for icon-only segmented control buttons
mperrotti 9927ea5
implements responsive variant prop
mperrotti 566af62
adds tests
mperrotti 4c394de
minor story tweaks
mperrotti 152293a
refactor useMatchMedia
mperrotti 63f9eb8
adds useMatchMedia tests, fixes useMatchMedia bugs, updates Segmented…
mperrotti cc1d998
removes aria attributes from Storybook controls
mperrotti 6f213cc
rm irrelevant 'TODO' comments
mperrotti 1f924b5
Merge branch 'main' of github.com:primer/react into mp/segmented-cont…
mperrotti 97bc927
adds changeset
mperrotti ff0ffa2
adds helpful comments
mperrotti cb65727
fixes button font-size in Safari
mperrotti 2be3b89
updates snapshots
mperrotti 8086767
addresses PR feedback
mperrotti 333e9bf
Merge branch 'main' into mp/segmented-control-variant-prop
mperrotti d15f987
Merge branch 'main' into mp/segmented-control-variant-prop
mperrotti 2efe8b0
Update docs/content/SegmentedControl.mdx
mperrotti 8bc3e73
Update docs/content/SegmentedControl.mdx
mperrotti b1c7a76
Update .changeset/pretty-students-judge.md
mperrotti 67c6df6
bumps @primer/primitives to version with segmented control variables
mperrotti d524e07
Merge branch 'main' of github.com:primer/react into mp/segmented-cont…
mperrotti e881f0f
corrects storybook knobs to match current API
mperrotti 3cb68f8
Merge branch 'mp/segmented-control-variant-prop' of github.com:primer…
mperrotti afabbee
rm 'wide' key from 'variant' prop in props table
mperrotti b3d1e82
fix bad merge in SegmentedControl
mperrotti 891e357
adds more context to a11y issues with the tooltip implementation
mperrotti 104b6de
adds changeset
mperrotti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Adds support for a responsive 'variant' prop to the SegmentedControl component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
non-blocking:
hideLabels
looks like a boolean type as opposed todropdown
variant. Wouldn't it be more consistent to useicons
instead?