-
Notifications
You must be signed in to change notification settings - Fork 4.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
Organize gallery controls #58407
Organize gallery controls #58407
Conversation
Size Change: +19 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in def7637. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7701656377
|
Another order might be:
This way resolution and crop are grouped which are semi related, and link to and open in tab are grouped which are related but also prevent layout shift. |
Yea, I thought about that too, but I was trying to keep the toggle controls together, to maintain a sense of visual hierarchy. And I don't like the "Open new tab" control jumping in the middle of the mix. |
Looks good, I also think i practice, grouping the toggles makes sense, but it's not a strong opinion. Aki makes a good point, I wonder if we can change it to "Crop images to fit"? |
I omitted it because the description was not adding any value, just more words.
I like it! |
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.
Tentative green light, would appreciate if others chime in too.
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.
Let's merge this PR. UX improvements such as those discussed in this comment can still be discussed in #58558 as a follow-up.
The "Random order" checkbox itself has existed in the Gallery feature of WP Core for some time. And that functionality has already been carried over to the Gallery block using the exact same text. Changing the text from "Random order" to "Randomize order" is at least an improvement.
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 Core SVNIf you're a Core Committer, use this list when committing to
GitHub Merge commitsIf 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. |
I fixed the unit test and merged trunk into this PR again. I think all GitHub actions will be ✅. |
@t-hamano I noticed the React Native E2E test is failing; is that related here? |
Based on the failed tests, it doesn't appear to be relevant to this PR. Now that it has passed the test, I think it's safe to merge |
What?
Following up on #57477 by renaming and ordering the controls to better support visual and logical control hierarchy. Moves "Resolution" above "Link to" as its a higher priority control. And moves "Open images in new tab" to append to the controls, rather than displace.
How?
Testing Instructions
Screenshots or screencast