-
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
SearchControl: Convert to TypeScript and add flag to remove bottom margin #43871
Conversation
@@ -72,6 +78,7 @@ function SearchControl( | |||
> | |||
<div className="components-search-control__input-wrapper"> | |||
<input | |||
{ ...restProps } |
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.
Size Change: +12 B (0%) Total Size: 1.25 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.
Testing the component in Storybook, pressing the "X" button doesn't seem to be clearing the input's value
Co-authored-by: Marco Ciampini <[email protected]>
a93075e
to
525dd66
Compare
Ah thanks, I messed that up. In 525dd66 I fixed it so the |
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.
🚀
In 525dd66 I fixed it so the onClose action spy is only passed in the onClose story. I also improved the story/prop description a bit to clarify its usage.
That is an unexpected behavior that the component is having 🤔 but anyway, not the scope of this PR.
Part of #38730 #35744
What?
__nextHasNoMarginBottom
prop to remove the bottom margin.Why?
Better docs, better reusability.
Testing Instructions
npm run storybook:dev
and check the SearchControl stories in Docs view.