-
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
Add contextual help text to the Scale property in featured image block. #34158
Conversation
Size Change: +111 B (0%) Total Size: 1.04 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.
Looks good - 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.
'Image is sized to maintain its aspect ratio and cropped to fill the entire space.' | ||
), | ||
contain: __( | ||
'Image is scaled to fill the space without clipping the content.' |
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 wondered whether we should include that this setting maintains the aspect ratio. But the visual effect and the added context of the fill option feels sufficient.
/> | ||
</> | ||
); | ||
|
||
const scaleHelp = { | ||
cover: __( | ||
'Image is sized to maintain its aspect ratio and cropped to fill the entire space.' |
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.
The mention of aspect ratio could be confusing as I'd consider that width/height of the natural image.
How about something like:
'Image is cropped and scaled to fill the entire space without being distorted'
40f5e09
to
af6cee2
Compare
Add some clarity over these options. Help text is contextual to the current chosen option.
We have discussed before how these tools are a good place to inform and guide and not merely perform.