Skip to content

Commit

Permalink
Don't reduce specificity of base root layout rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Apr 11, 2024
1 parent 85b0208 commit f847062
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,11 @@ protected function get_layout_styles( $block_metadata ) {
is_string( $layout_definition['displayMode'] ) &&
in_array( $layout_definition['displayMode'], $valid_display_modes, true )
) {
$layout_selector = ".$class_name";
$layout_selector = sprintf(
'%s .%s',
$selector,
$class_name
);
$block_rules .= static::to_ruleset(
$layout_selector,
array(
Expand Down

0 comments on commit f847062

Please sign in to comment.