From a22d18987fbff8c235d0b840b16c1a3ee63a6d76 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Mon, 3 May 2021 10:54:24 +0200 Subject: [PATCH] Fix submenu direction justification regression --- packages/block-library/src/navigation/style.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index 141907bd08bec..6293f0d3c860c 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -183,9 +183,11 @@ // When justified space-between, open submenus leftward for last menu item. // When justified right, open all submenus leftwards. - &.items-justified-space-between > .submenu-container > .has-child:last-child, - &.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child, - &.items-justified-right .has-child { + // This needs high specificity. + &.wp-block-navigation.items-justified-space-between > .submenu-container > .has-child:last-child, + &.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child, + &.wp-block-navigation.items-justified-right .has-child { + // First submenu. .submenu-container, .wp-block-navigation-link__container {