-
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
Background Image: Make panel appear in a consistent location #63551
Conversation
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. |
@WordPress/gutenberg-design can you please confirm the preferred location for the background image panel is beneath the color panel? Which on trunk is the case for the Styles tab in the inspector. |
Size Change: +1 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Probably related #63188. |
There's still the larger open question around whether "Background image" is a bespoke panel going forward, or not. If yes, I'd tend to think that it should be "Background", and include the background color, which can also include a gradient that is affected by the same background position tools that the image is. But that's separate, and this PR does fix the order to be better. |
Consistently placing this panel after the Color panel makes sense to me too. It will also make the settings easier to find if/when all background controls converge in a single panel down the road. |
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.
Nice polishing here! Particularly now that the background image controls are in a popover, it feels really good to me having them close to the Color controls:
✅ Individual Verse block looks good
✅ Individual Group block looks good
✅ Selecting multiple Verse blocks looks good, allows selecting background image
✅ Selecting multiple Group blocks looks good, allows selecting background image
LGTM! 🚀
…ss#63551) Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Thanks for following up on this! 🚀 |
Fixes: #63188
Issue was also flagged in #61382 (review)
What?
This PR makes sure that the background image panel appears in the same location between blocks regardless of whether the block utilises the styles tab or has all panels within the block inspector itself.
The background image panel was also added to those displayed for multi-block selections when there are multiple blocks of the same type selected with support for background images.
Why?
How?
Testing Instructions
Screenshots or screencast
Verse Block
Before and After
| Before | After | |---|---| | | |Group Block ( No change )
Before and After
Multiple Selections
Before and After