Skip to content

Commit

Permalink
Fix background colors in nested submenus. (#36476)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored and noisysocks committed Nov 22, 2021
1 parent 91ce805 commit 2db5ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-submenu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function block_core_navigation_submenu_build_css_colors( $context, $attributes )
'inline_styles' => '',
);

$is_sub_menu = isset( $attributes['isTopLevelLink'] ) ? ( ! $attributes['isTopLevelLink'] ) : false;
$is_sub_menu = isset( $attributes['isTopLevelItem'] ) ? ( ! $attributes['isTopLevelItem'] ) : false;

// Text color.
$named_text_color = null;
Expand Down

0 comments on commit 2db5ae6

Please sign in to comment.