diff --git a/packages/block-library/src/navigation-link/editor.scss b/packages/block-library/src/navigation-link/editor.scss index e11e9c949381c3..8f3c08717e5dd4 100644 --- a/packages/block-library/src/navigation-link/editor.scss +++ b/packages/block-library/src/navigation-link/editor.scss @@ -41,7 +41,7 @@ * Navigation Items. */ -.wp-block-navigation-link { +.wp-block-navigation-item { .wp-block-navigation__submenu-container { display: block; } diff --git a/packages/block-library/src/navigation/editor.scss b/packages/block-library/src/navigation/editor.scss index 47fa26ce4920cc..e85c873c700e1b 100644 --- a/packages/block-library/src/navigation/editor.scss +++ b/packages/block-library/src/navigation/editor.scss @@ -31,7 +31,7 @@ // Low specificity default to ensure background color applies to submenus. .wp-block-navigation__container, -.wp-block-navigation-link { +.wp-block-navigation-item { background-color: inherit; } @@ -215,7 +215,7 @@ $color-control-label-height: 20px; // Style skeleton elements to mostly match the metrics of actual menu items. // Needs specificity. - .wp-block-navigation-link.wp-block-navigation-link { + .wp-block-navigation-item.wp-block-navigation-item { position: relative; min-width: 72px; @@ -237,7 +237,7 @@ $color-control-label-height: 20px; } - .wp-block-navigation-link.wp-block-navigation-link, + .wp-block-navigation-item.wp-block-navigation-item, .wp-block-navigation-placeholder__preview-search-icon { opacity: 0.3; } @@ -250,6 +250,7 @@ $color-control-label-height: 20px; width: 0; overflow: hidden; flex-wrap: nowrap; + flex: 0; } // Hide entirely when vertical. diff --git a/packages/block-library/src/navigation/placeholder-preview.js b/packages/block-library/src/navigation/placeholder-preview.js index fff5f80b39f069..a8c1ae6bdd451f 100644 --- a/packages/block-library/src/navigation/placeholder-preview.js +++ b/packages/block-library/src/navigation/placeholder-preview.js @@ -6,9 +6,9 @@ import { Icon, search } from '@wordpress/icons'; const PlaceholderPreview = () => { return (