diff --git a/packages/block-library/src/navigation/style.scss b/packages/block-library/src/navigation/style.scss index b8eb41bbe1ff5d..1aa04fcd435aa9 100644 --- a/packages/block-library/src/navigation/style.scss +++ b/packages/block-library/src/navigation/style.scss @@ -1,5 +1,4 @@ // Navigation block and menu item styles. -// as that block is meant to behave as menu items when leveraged. // These styles also affect the Page List block when used inside your navigation block. // // Classes: @@ -178,25 +177,6 @@ visibility: visible; opacity: 1; } - - // Page list menu items. - &:hover { - cursor: pointer; - - > .submenu-container { - visibility: visible; - opacity: 1; - } - } - - &:focus-within { - cursor: pointer; - - > .submenu-container { - visibility: visible; - opacity: 1; - } - } } // Submenu indentation when there's a background. @@ -301,9 +281,7 @@ // Default background and font color. .wp-block-navigation:not(.has-background) { - // @todo: check this one separately. - .submenu-container, // This target items created by the Page List block. - .wp-block-navigation__container .wp-block-navigation__submenu-container { + .wp-block-navigation__submenu-container { // Set a background color for submenus so that they're not transparent. // NOTE TO DEVS - if refactoring this code, please double-check that // submenus have a default background color, this feature has regressed