-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
feat(ra-ui-materialui): Improve FilterButton UX #10183
Conversation
@@ -212,6 +213,16 @@ export const FilterButton = (props: FilterButtonProps) => { | |||
</MenuItem> | |||
) | |||
)} | |||
{hasFilterValues && ( | |||
<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.
use MUI's Divider
instead
@@ -212,6 +213,16 @@ export const FilterButton = (props: FilterButtonProps) => { | |||
</MenuItem> | |||
) | |||
)} | |||
{hasFilterValues && ( |
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.
Why this test?
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.
…le state if applied
PR based from the wrong branch. New PR available : #10186 |
Problem
There is no way to differentiate between filter choices and filter actions (such as save current query) in the FilterButton
when you select a filter, it disappears from the list, which changes the place of each choice item and makes it hard to remember where is the filter you want to enable ; same for the actions (Remove all filters)
To Do
Additional Checks
master
for a bugfix, ornext
for a feature- [ ] The documentation is up to date