-
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
Add help text to Gallery Image Size control #49074
Conversation
Well can we just remove the Image Size controls and add in the Image Dimension controls instead (if it is natural to do so)? "Select the Size of the Source image." Image Size are only related to resolution and that in itself is very confusing. |
Size Change: +21 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Flaky tests detected in 28fc5c7. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4418978125
|
We probably still need a control for choosing the resolution (i.e. "Image size") — for now at least.
You would see that the image is quite blurry. I'm just wanting to push for consistency with what we have today—not change how the controls work/what controls are available. |
Linking to Joen's comment here. Changing the "Image Size" title to become "Resolution" would be somewhat helpful fix. |
Perhaps so, but are we in agreement on changing the label from "Image Size" to "Resolution" across the board? cc @jasmussen
I don't think we need to print the word "resolution" twice. |
Adding the text below it = Adding the description you mentioned below 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.
I don't see a reason not to. It's not going to land in 6.2, so there's time to revert if for whatever reason this was a bad idea, but it seems vastly clearer to me. Overall though, what do you think about this design? In terms of both verbiage and help text. I'm happy to revisit. |
@jasmussen I like it, though as you mentioned previously — I'm not sure the 25-100% are necessary/useful. And is there a select with the double values as a component in use already? |
What?
In support of #48618 (comment), this small PR adds proper, consistent help text to the image size control for the Gallery block. Related: #48478
Why?
Consistency.
How?
Adds
Select the size of the source image.
text via thehelp
prop.Testing Instructions
Screenshots or screencast
Before:
After: