You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Global styles: block background UI controls (WordPress#60100)
* Adding background panel for blocks.
* Default controls using block supports
* Updating tests after rebase
Removed unrequired change function
* Set defaults for the global styles block group background image
* Enabling theme file resolution for blocks
* LINTO
* Use global settings to check if background image is supported.
* This commit checks for theme block styles in the block supports hook so a background block control can determine whether it has an inherited value. If there is an inherited value, the block control will provide an option to "remove" the theme style.
This commit also sends resolved theme asset URI via the _links property so that these images can be used in block control previews.
Added resolver tests for blocks
Use `get_styles_for_block` in unit tests when testing block nodes
Use `get_styles_for_block` in unit tests when testing block nodes
Add since annotation
backport changelog
* update assertion comments
* Now that background styles can be used in block styles, move them to styles complete ref
* Pass resolved URIs to display inherited background image styles with relative paths
Also, output any background styles, even if there's no background image
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: jameskoster <[email protected]>
0 commit comments