-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update filter control position #59231
Conversation
Size Change: -14 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
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, thanks!
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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 like a good improvement to me. I'm assuming majority of cases will have one or two filters. Nice work.
Flaky tests detected in e353e9d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8017782201
|
Co-authored-by: jameskoster <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: SaxonF <[email protected]>
I just cherry-picked this PR to the cherry-pick-wp-6-5-beta-3 branch to get it included in the next release: eadfe88 |
Co-authored-by: jameskoster <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: SaxonF <[email protected]>
What?
This PR moves the data view filter controls into the same row as the search, bulk actions, and view options controls.
Why?
When no (or few) filters are set (which is most common), two separate rows for these controls doesn't feel like the best use of space.
The trade-off is that on smaller screens the controls move around when you begin adding lots of filters. However, for 6.5 core data views have at most two filters, so this feels a bit of an edge case. In the future filter controls may permanently require a dedicated row, but I'm not sure that's the case right now.
Testing Instructions
filters.mp4