Skip to content
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

Add prop to render help trigger in SearchForm component #4734

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

edmundoa
Copy link
Contributor

SearchForm is almost always used with some special query syntax that that users may not know, or may not always remember. That means that almost always there is a help button associated to the SearchForm. So far the help button was rendered outside the SearchForm component, usually too far away from the text input as to still remain some context.

This commit let us render a help button inside the text input, helping users to associate that help with the text that they are supposed to write in that input.

The prop is optional, so other consumers of SearchForm will work as they were working before.

screen shot 2018-04-18 at 17 26 51

`SearchForm` is almost always used with some special query syntax that
that users may not know, or may not always remember. That means that
almost always there is a help button associated to the `SearchForm`. So
far the help button was rendered outside the `SearchForm` component,
usually too far away from the text input as to still remain some
context.

This commit let us render a help button inside the text input, helping
users to associate that help with the text that they are supposed to
write in that input.
@edmundoa edmundoa added this to the 3.0.0 milestone Apr 18, 2018
@edmundoa edmundoa requested a review from bernd April 18, 2018 15:41
@bernd bernd self-assigned this Apr 18, 2018
Copy link
Member

@bernd bernd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@bernd bernd merged commit 0df9438 into master Apr 19, 2018
@bernd bernd deleted the search-form-help branch April 19, 2018 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants