-
Notifications
You must be signed in to change notification settings - Fork 4.6k
ComboBox: fix reset button's height
#38020
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
ciampo
left a comment
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.
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.
The knobs addon is deprecated and we're in the process of converting the examples to the new controls approach.
Would you mind refactoring this Storybook example? Here's a couple of references:
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.
Thanks for the links, will take a look later this week.
|
@ciampo Updated to remove knobs usage + added changelog. |
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.
Thank you @lsl for working on this! Code changes LGTM, and the Storybook example is configured correctly with the Controls.
I believe this PR needs to be rebased before merging — while doing so, could you also move the CHANGELOG entry under a category (e.g. ### Bug fix)? Thank you!
|
@ciampo, done! Thanks for the help! |
Description
Reduces the height of the reset button icon so that it doesn't expand the textbox height that contains it.
This expanded height was noticed when we placed it next to a text input we expected would have a matching height (example, it's off by 2px).
How has this been tested?
Manually checking in storybook docs
Screenshots
Before
allowReset-before.mp4
After
allowReset-after.mp4
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.jsfiles for terms that need renaming or removal).