mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block background images have long had "default" values to optimize th…
…eir appearance. For example, block styles receive a default background size of "cover" in the editor and the frontend. Or, where the background size is "contain" the background position is "center". Defaults have always applied to images uploaded by the user in the editor. The PR brings a bit of consistency to background image styles. Block styles "inherit" values from global styles/theme.json and display the current value (whether the set, inherited or default value) in the editor controls. In relation to default values: - Site wide background images (uploaded or otherwise) do not receive any default values. - Block background images defined in theme.json do not receive any default values. - Block background images that have been uploaded (images with ids) receive background default values.
- Loading branch information
Showing
2 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters