-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(item): allow item to grow when it is used in a flex container #28594
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
Conversation
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.
Fix looks good. Should we add a test for this?
I meant to add that in the description - I can add a test if we want one. Should it go in item? |
Is there a way to show the change in behavior without |
Yeah I couldn't reproduce it outside of select so I added it to the select tests here: 6d0d490 Running screenshots now. |
...icker-internal.e2e.ts-snapshots/picker-internal-popover-diff-md-ltr-Mobile-Firefox-linux.png
Show resolved
Hide resolved
Removing myself from review since there are two approvals already. Lmk if you would still like me to look though! |
Issue number: N/A
What is the current behavior?
When an item containing a select is used inside of a flex container, the item collapses to
0px
width. Example code:Note
This bug was introduced in
feature-7.6
by this commit. It cannot be reproduced onmain
.What is the new behavior?
Sets the flex property to
1
onion-item
so that it will grow inside of a flex container, resulting in the select being displayed. This property is ignored when inside of a block container.Does this introduce a breaking change?
Other information
feature-7.6