-
Notifications
You must be signed in to change notification settings - Fork 814
Making SearchInput width-aware #143
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
nettofarah
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.
Nice find!
| paddingLeft={height} | ||
| appearance={appearance} | ||
| disable={disabled} | ||
| width={width} |
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 think a better solution would be to add display="block" and width={null} to TextInput so it just stretches to fill the parent Box.
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 @fforres for taking a look at this and fixing this! This was totally an annoying bug in Evergreen ❤️ |
* Adding width * Adding default width

Hallo @Rowno @jeroenransijn
I came across a case where I needed to customize the width of the searchInput box.
Passing a 'width' prop to
SearchInputonly set the container's width and not the input, so hopefully this pr fixes that.Screenshot of storybook