-
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
Global Styles: refactor site background controls and move site global styles into Background group #65304
Global Styles: refactor site background controls and move site global styles into Background group #65304
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. |
Size Change: +229 B (+0.01%) Total Size: 1.77 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.
This works great:
Two small things if you can fix them easily, otherwise we can follow up.
Can you move the background item below color? So it's not at the top.
There's a typographic widow here:
We can fix that typographic widow in a few ways, but the best way to do it is to replace the description with a Text component. If you do that, it's automatically handled across localizations too.
An alternate fix is to rephrase it, perhaps like so:
Thanks for the quick feedback! I'll make those changes early next week. 🙇🏻 |
1e2b21c
to
e541285
Compare
…component. Moving styles. This is in preparation for adding colors and other background controls later.
Updating props
…color. Shorten copy and wrap in Text to avoid widows.
e541285
to
9996094
Compare
What? How?
Builds upon #63216 Props goes to @amitraj2203
The PR:
The follow up to this PR is to carry on with the objective of #63216, which is to combine background colors into the background panel.
Note
This PR builds on the ideas in #63216. Any props here should include those from that PR.
Why?
As mentioned in #63216 (comment), the original PR needed a little refactoring before adding background color to the mix.
The main reason was to be able to better manage individual controls within a style group.
Testing Instructions
The only difference should be that top-level background image controls are now available under a "Background" item in the Site Editor's style navigation.
There should otherwise be no regressions in the way the background image UI works for blocks or block global styles.
Kapture.2024-09-13.at.14.00.07.mp4