-
-
Notifications
You must be signed in to change notification settings - Fork 803
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 clear button to list filter search input #1845
Add clear button to list filter search input #1845
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.
- The x button should only be visible if there is text entered in the text field.
- Add a className to the button so that it can be manipulated with css.
- The button probably needs some styling work on it. The colour needs to be more subtle and it probably should change background colour on hover. It stands out a lot in the current version.
<OverlayTrigger | ||
placement="top" | ||
overlay={ | ||
<Tooltip id="filter-tooltip"> | ||
<FormattedMessage id="actions.clear" /> | ||
</Tooltip> | ||
} | ||
> |
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 don't think an overlay is necessary for this. A title on the button should be sufficient.
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.
Tested and reviewed the requested changes, approved
<Button | ||
variant="secondary" | ||
onClick={onClearQuery} | ||
title={intl.formatMessage({ id: "actions.search" })} |
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.
This should be actions.clear
.
Addresses #1306 but only for the ListFilter component.
Closes #1306