Skip to content

Commit

Permalink
Move duotone styles from color -> filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Sep 28, 2021
1 parent 53b154b commit 008c5d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ class WP_Theme_JSON_Gutenberg {
),
'color' => array(
'background' => null,
'duotone' => null,
'gradient' => null,
'text' => null,
),
'filter' => array(
'duotone' => null,
),
'spacing' => array(
'margin' => null,
'padding' => null,
Expand Down Expand Up @@ -259,7 +261,7 @@ class WP_Theme_JSON_Gutenberg {
* path to the value in theme.json & block attributes.
*/
const DUOTONE_PROPERTIES_METADATA = array(
'filter' => array( 'color', 'duotone' ),
'filter' => array( 'filter', 'duotone' ),
);

const ELEMENTS = array(
Expand Down

0 comments on commit 008c5d5

Please sign in to comment.