Make WordPress Core


Ignore:
Timestamp:
06/26/2023 11:42:16 PM (20 months ago)
Author:
isabel_brison
Message:

Editor: add box shadow support to blocks.

Adds the ability for blocks to declare support for CSS box-shadow and processing of necessary styles.

Props madhudollu, sabernhardt, ramonopoly, spacedmonkey, mukesh27.
Fixes #58590.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/style-engine/class-wp-style-engine.php

    r55985 r56046  
    149149            ),
    150150        ),
     151        'shadow'     => array(
     152            'shadow' => array(
     153                'property_keys' => array(
     154                    'default' => 'box-shadow',
     155                ),
     156                'path'          => array( 'shadow' ),
     157                'css_vars'      => array(
     158                    'shadow' => '--wp--preset--shadow--$slug',
     159                ),
     160            ),
     161        ),
    151162        'dimensions' => array(
    152163            'minHeight' => array(
Note: See TracChangeset for help on using the changeset viewer.