-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ComboBox
: fix reset
button's height
#38020
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.
parameters: { | ||
knobs: { disable: false }, | ||
}, |
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.
87a7151
to
0c94627
Compare
@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!
0c94627
to
72fa268
Compare
@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.js
files for terms that need renaming or removal).