Make WordPress Core


Ignore:
Timestamp:
09/18/2023 06:25:49 AM (20 months ago)
Author:
isabel_brison
Message:

Editor: add block instance element color support for buttons and headings.

Adds support for buttons and headings to the colors and elements block supports, allowing button and heading element colors to be changed on individual blocks.

Props aaronrobertshaw.
Fixes #59309.

File:
1 edited

Legend:

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

    r56574 r56604  
    7171                ),
    7272                'path'          => array( 'color', 'background' ),
     73                'css_vars'      => array(
     74                    'color' => '--wp--preset--color--$slug',
     75                ),
    7376                'classnames'    => array(
    7477                    'has-background'             => true,
     
    8184                ),
    8285                'path'          => array( 'color', 'gradient' ),
     86                'css_vars'      => array(
     87                    'gradient' => '--wp--preset--gradient--$slug',
     88                ),
    8389                'classnames'    => array(
    8490                    'has-background'                => true,
Note: See TracChangeset for help on using the changeset viewer.