From 2db5ae619ba4c39fe8ac0edad51bece4c2a5ab98 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Wed, 17 Nov 2021 11:37:21 +1100 Subject: [PATCH] Fix background colors in nested submenus. (#36476) --- packages/block-library/src/navigation-submenu/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation-submenu/index.php b/packages/block-library/src/navigation-submenu/index.php index cdb26b93b1b50b..addf5c81c9cb4d 100644 --- a/packages/block-library/src/navigation-submenu/index.php +++ b/packages/block-library/src/navigation-submenu/index.php @@ -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;