generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 216
feat: introduce minWidth and maxWidth properties #4239
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
Open
mxschll
wants to merge
34
commits into
main
Choose a base branch
from
dev-v3-schomax-dropdown-sizing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
bdc3ad1
feat: add dropdown minWidth and maxWidth props
mxschll ade09c1
refactor: change default value for minWidth to undefined
mxschll b19322c
fix: dont stretch content when width provided
mxschll e647223
refactor: replace stretchWidth prop with minWidth and maxWidth
mxschll 959351e
fix: dont set width when dropdown is nested
mxschll eae1787
feat: introduce max-content type
mxschll 7837a7b
fix: hide block border on flexible width
mxschll 16e8f6c
fix: replicate hide block border behaviour
mxschll 93b7edc
fix: autosuggest sizing
mxschll ee95459
fix: adapt content on resize
mxschll 0624fe1
refactor: simplify logic for hiding border
mxschll 5bfb8f8
fix: dont remove class if minWidth provided
mxschll 8c2b8fa
fix: restrict max width when expandToViewport=true
mxschll 180dfca
fix: remove width constraints in button dropdown
mxschll 9f47d67
chore: update dropdown tests
mxschll df86788
retrigger checks
mxschll ab1e09d
feat: allow any string value as width param
mxschll f0f88f2
fix: run stretch with
mxschll 1caeaa6
chore: add unit test for minWidth and maxWidth
mxschll 01ad9b6
fix: use rendered with for dimensions
mxschll 966431d
chore: remove unused constraint
mxschll f324d2a
refactor: simplify interface
mxschll b22709c
fix: remove condition
mxschll 8871fee
fix: remove border offset
mxschll 62efd7c
chore: adapt integration test for changes
mxschll 3925897
feat: introduce prop to hide block border
mxschll a886170
chore: remove unused props
mxschll 06bdc08
fix: hide button dropdown block border
mxschll adc3437
fix: add block border to button dropdown
mxschll 5987cd0
retrigger checks
mxschll 195bac5
Merge remote-tracking branch 'origin/main' into dev-v3-schomax-dropdo…
mxschll 0c8d124
fix: hide border in internal button dropdown
mxschll 3891099
chore: formatting
mxschll 3b7b749
refactor: remove redundant variable
mxschll 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
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
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
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
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.
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.
When
expandToViewportis enabled, the dropdown adjusts its size based on its content. This preserves the current behavior. The functionality has simply been moved from the dropdown component to this specific line of code.