Update filter control position#59231
Conversation
|
Size Change: -14 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
|
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. |
SaxonF
left a comment
There was a problem hiding this comment.
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 <jameskoster@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: SaxonF <saxonafletcher@git.wordpress.org>
|
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 <jameskoster@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: SaxonF <saxonafletcher@git.wordpress.org>
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