-
Notifications
You must be signed in to change notification settings - Fork 645
SelectPanel: Make panel full screen on narrow screens with Save and optional Cancel button #5761
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
30 commits
Select commit
Hold shift + click to select a range
435dde4
Add responsive variant to AnchoredOverlay
siddharthkp e6f46aa
add styles without css modules enabled
siddharthkp 26e4a18
add vrt test for narrow screen
siddharthkp 90141bb
mock MatchMedia for SelectPanel tests
siddharthkp d7ceb31
mock MatchMedia for AnchoredOverlay tests
siddharthkp 09612ec
mock MatchMedia for components that use AnchoredOverlay
siddharthkp 4b4b0b3
update tests that use anchoredOverlay
siddharthkp 351d70d
test(vrt): update snapshots
siddharthkp 64dcc35
Add a save button footer for full screen select panel
siddharthkp 80e0ea1
don't use it in SelectPanel yet
siddharthkp 83a600b
add changeset
siddharthkp 5725f88
test(vrt): update snapshots
siddharthkp 7ed663f
test(vrt): update snapshots
siddharthkp 3ec96f0
Merge branch 'responsive-anchored-overlay' into selectpanel-responsiv…
siddharthkp 4c7a4e3
test(vrt): update snapshots
siddharthkp d5efe8c
use AnchoredOverlay's variant
siddharthkp 83df65c
test(vrt): update snapshots
siddharthkp ef3ce9e
add onCancel prop
siddharthkp 7b1b0e1
test(vrt): update snapshots
siddharthkp c7b56e0
full-screen was renamed to fullscreen
siddharthkp 4875568
Merge branch 'main' into selectpanel-responsive-save-button
siddharthkp 95d0b5c
add to docs
siddharthkp a74eaf2
test(vrt): update snapshots
siddharthkp 5f81715
don't show automatic footer actions for single selection
siddharthkp 71eaed9
fix story for onCancel
siddharthkp f19bfb2
we don't need sx fallback anymore!
siddharthkp d9536e7
update dependencies
siddharthkp a717c83
fix padding
siddharthkp f91b71e
add onCancel to single selection story
siddharthkp 12fb61b
Merge branch 'main' into selectpanel-responsive-save-button
siddharthkp 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": patch | ||
| --- | ||
|
|
||
| SelectPanel: Make SelectPanel full screen on narrow devices with a Save button |
Binary file modified
BIN
-5.17 KB
(84%)
...s/SelectPanel-Default-responsive-width-light-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.
do we expect this to be used in modal as well? If so maybe we need to correct this verbiage
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.
We do, but we don't have that yet. Can update once we have modal.
It's going to be a strange description:
Narrow screens or variant=modal😅