-
Notifications
You must be signed in to change notification settings - Fork 578
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
Overlay: Add min-width
to Overlay
container
#5129
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1e14b81
Add "reflow" prop to `Overlay`
TylerJDev fdbe2a9
Remove `max-width`
TylerJDev 0b7e956
Update stories
TylerJDev 793e25f
Update note
TylerJDev d94abc7
Remove `reflow` prop
TylerJDev 0518843
More changes
TylerJDev 9476b99
Update snapshot
TylerJDev af84dc0
Merge branch 'main' into tylerjdev/overlay-reflow
TylerJDev 08322c0
Add changeset
TylerJDev 8ef1129
Merge branch 'main' into tylerjdev/overlay-reflow
TylerJDev 05828ce
Merge branch 'main' into tylerjdev/overlay-reflow
TylerJDev 44ab1e1
Add condition for `data-reflow-container`, edits to stories
TylerJDev e98960f
Fix tests
TylerJDev a241845
Add to docs, rename prop, add feature flag
TylerJDev 201f18d
Merge branch 'main' into tylerjdev/overlay-reflow
TylerJDev 4ef1022
Add new prop to `AnchoredOverlay`
TylerJDev 46ed885
Fix test
TylerJDev bdc6ec3
edit stories to be responsive at min of `320px`
TylerJDev 6d8ab1e
Add test for FF
TylerJDev 2f7a92c
Fix types
TylerJDev 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 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 | ||
--- | ||
|
||
Overlay: Adds `min-width` to container to improve responsiveness |
This file contains 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 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 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 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 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 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 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.
I'm confused about this logic, wouldn't the second part be overriding the FF? or is that the intent here?
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.
For this, I was thinking of adding the prop outside of the FF, but putting the opt-out factor inside the feature flag. So basically someone could use the prop today, but they'd have to pass it themselves.
if
overflow
is true, that means that the FF is enabled and a consumer would have to opt-out of it viapreventOverflow=true
. Otherwise, if the FF is not enabled, they must pass inpreventOverflow="false"
in order to get the reflow style.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.
ahh I see, thanks for explaining that!