diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index 100ebe6c09171b..50c8dd651744f8 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -154,10 +154,7 @@ $navigation-icon-size: 24px; // Styles for submenu flyout. // These are separated out with reduced specificity to allow better inheritance from Global Styles. .wp-block-navigation .has-child { - // We use :where to keep specificity minimal, yet still scope it to only the navigation block. - // That way if padding is set in theme.json, it still wins. - // https://css-tricks.com/almanac/selectors/w/where/ - :where(.wp-block-navigation__submenu-container) { + .wp-block-navigation__submenu-container { background-color: inherit; color: inherit; position: absolute; @@ -233,7 +230,7 @@ $navigation-icon-size: 24px; // Custom menu items. // Show submenus on hover unless they open on click. - &:where(:not(.open-on-click)):hover > .wp-block-navigation__submenu-container { + &:not(.open-on-click):hover > .wp-block-navigation__submenu-container { visibility: visible; overflow: visible; opacity: 1; @@ -243,7 +240,7 @@ $navigation-icon-size: 24px; } // Keep submenus open when focus is within. - &:where(:not(.open-on-click):not(.open-on-hover-click)):focus-within > .wp-block-navigation__submenu-container { + &:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container { visibility: visible; overflow: visible; opacity: 1;