Skip to content

Commit

Permalink
Add link color logic
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 3, 2021
1 parent cd3fd8e commit 31d613b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,14 @@ private function get_block_styles() {
unset( $declarations[ $index ] );
}

if ( '--wp--style--color--link' === $property['name'] ) {
$block_rules .= self::to_ruleset(
$selector . ':not([class*=has-link-color])',
array( $property )
);
unset( $declarations[ $index ] );
}

if ( 'font-size' === $property['name'] ) {
$block_rules .= self::to_ruleset(
$selector . ':not([class*=-font-size])',
Expand Down

0 comments on commit 31d613b

Please sign in to comment.