Skip to content

Commit

Permalink
Fix background colors in nested submenus.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Nov 15, 2021
1 parent cd8aaf8 commit 2ef3761
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 2ef3761

Please sign in to comment.