-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix(filter): Removed placeholder from within dropdown… #449
Conversation
Deploy preview for patternfly-ng ready! Built with commit 0bc3664 |
0ed2bb5
to
690301e
Compare
@dtaylor113 This looks promising. But I cannot seem to get to the preview link. Can you check it? |
@mcarrano Try the link again. It worked for me, but takes a bit to load |
This looks great, @dtaylor113 . My only question is whether it can be made so that the text is only italicized when it is the placeholder. At all other times, the selection should not be italicized. If this is not possible, then I think I would remove the italicized style altogether. As for the multi-select variant we talked about yesterday, here is a quick mockup to show what this could look like. Let me know what you think. |
5d03903
to
be458ea
Compare
I was thinking the same thing @mcarrano :-) Here's the updated screenshots: |
@mcarrano I may have encountered an issue with the pattern.
Although the filter has been applied, the filter selection is no longer reflected in the menu. Wondering if the menu selection is expected to reflect the applied filter in this scenario? |
Hi @dlabrecq, I raised this in the middle of patternfly/patternfly#1116. I'm still not sure how complicated it will be to have the dropdown remember it's state -especially if we eventually support multiple select values. It also depends on whether we also support enforcing single select or allow dropdown filters to be accumulative. I'll spend a little more time looking into this issue. I think for now we are always enforcing single select/applied filter for dropdowns. Meaning a dropdown always replaces an existing filter tag. In this scenario it makes sense to reset the dropdown to the applied filter value. |
be458ea
to
0bc3664
Compare
This is looking good @dtaylor113 Do you want to try to incorporate the multi-select here also or would you rather consider that in a separate PR? |
Separate PR please! I need to apply these changes to patternfly-react next, then I'd work on multi-select. -thanks @mcarrano, @dlabrecq please approve this PR when/if ready -thanks |
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.
LGTM
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.
Looks great @dtaylor113 . I will open a separate issue for the multi-select version of this control.
Thanks @mcarrano, please be sure to indicate that multi-select should use 'Grouped Filter Chips'. |
🎉 This PR is included in version 4.5.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
… and show current value in dropdown
Before:
After:
CC @mcarrano, @akaRem
Fixes #418