-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add a button to allow resetting the ComboboxControl value #25692
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
|
Size Change: +156 B (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
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.
This extra Flex was only needed to center the Button properly, I was wondering if FlexItems should automatically be flexes as well 🤔 cc @ItsJonQ
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 hesitated between a "grow" prop or an "expand" one.
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 prefer "grow" since it's already CSS/flex terminology.
ec05e14 to
650d876
Compare
|
@youknowriad Haiii! So cool that you're using You can achieve what you need with <Flex>
<FlexBlock>Adaptively wide thing</FlexBlock>
<FlexItem>Tiny thing</FlexItem>
</Flex>The only thing I needed to adjust (css wise) was to change the Switching it to a block based HTML element Hope this helps!! |
|
Thanks @mcsf ! Looks like there's a snapshot test conflict. I'm going to resolve that and merge :) |
41efdf5 to
359abb2
Compare
When using the ComboboxControl in selects where "null" values are allowed like #25267 we need to be able to reset its value.
This PR does so by adding a reset button.
Testing instructions