From 2a143ef16ca671311fba0257abe0590f56b34a67 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Wed, 24 Mar 2021 07:44:27 +0100 Subject: [PATCH] Navigation Block: Increase importance of submenus staying open. --- packages/block-library/src/navigation-link/editor.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/navigation-link/editor.scss b/packages/block-library/src/navigation-link/editor.scss index b96087eb65200..bd81b95f3bd9f 100644 --- a/packages/block-library/src/navigation-link/editor.scss +++ b/packages/block-library/src/navigation-link/editor.scss @@ -23,8 +23,9 @@ &.is-selected, &.has-child-selected { > .wp-block-navigation-link__container { - visibility: visible; - opacity: 1; + // We use important here because if the parent block is selected and submenus are present, they should always be visible. + visibility: visible !important; + opacity: 1 !important; } } }