Plugin Updates
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
* @since 6.1.0
|
||||
* @since 6.3.0 Added support for text-columns.
|
||||
* @since 6.4.0 Added support for background.backgroundImage.
|
||||
* @since 6.5.0 Added support for background.backgroundPosition,
|
||||
* background.backgroundRepeat and dimensions.aspectRatio.
|
||||
*/
|
||||
#[AllowDynamicProperties]
|
||||
final class WP_Style_Engine {
|
||||
@@ -48,14 +50,26 @@ final class WP_Style_Engine {
|
||||
*/
|
||||
const BLOCK_STYLE_DEFINITIONS_METADATA = array(
|
||||
'background' => array(
|
||||
'backgroundImage' => array(
|
||||
'backgroundImage' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-image',
|
||||
),
|
||||
'value_func' => array( self::class, 'get_url_or_value_css_declaration' ),
|
||||
'path' => array( 'background', 'backgroundImage' ),
|
||||
),
|
||||
'backgroundSize' => array(
|
||||
'backgroundPosition' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-position',
|
||||
),
|
||||
'path' => array( 'background', 'backgroundPosition' ),
|
||||
),
|
||||
'backgroundRepeat' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-repeat',
|
||||
),
|
||||
'path' => array( 'background', 'backgroundRepeat' ),
|
||||
),
|
||||
'backgroundSize' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'background-size',
|
||||
),
|
||||
@@ -177,7 +191,16 @@ final class WP_Style_Engine {
|
||||
),
|
||||
),
|
||||
'dimensions' => array(
|
||||
'minHeight' => array(
|
||||
'aspectRatio' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'aspect-ratio',
|
||||
),
|
||||
'path' => array( 'dimensions', 'aspectRatio' ),
|
||||
'classnames' => array(
|
||||
'has-aspect-ratio' => true,
|
||||
),
|
||||
),
|
||||
'minHeight' => array(
|
||||
'property_keys' => array(
|
||||
'default' => 'min-height',
|
||||
),
|
||||
@@ -215,6 +238,9 @@ final class WP_Style_Engine {
|
||||
'default' => 'font-size',
|
||||
),
|
||||
'path' => array( 'typography', 'fontSize' ),
|
||||
'css_vars' => array(
|
||||
'font-size' => '--wp--preset--font-size--$slug',
|
||||
),
|
||||
'classnames' => array(
|
||||
'has-$slug-font-size' => 'font-size',
|
||||
),
|
||||
@@ -223,6 +249,9 @@ final class WP_Style_Engine {
|
||||
'property_keys' => array(
|
||||
'default' => 'font-family',
|
||||
),
|
||||
'css_vars' => array(
|
||||
'font-family' => '--wp--preset--font-family--$slug',
|
||||
),
|
||||
'path' => array( 'typography', 'fontFamily' ),
|
||||
'classnames' => array(
|
||||
'has-$slug-font-family' => 'font-family',
|
||||
|
||||
Reference in New Issue
Block a user