diff --git a/assets/stylesheets/_z-index.scss b/assets/stylesheets/_z-index.scss index 98d6bbc10d56d6..67e8396320addb 100644 --- a/assets/stylesheets/_z-index.scss +++ b/assets/stylesheets/_z-index.scss @@ -90,14 +90,12 @@ $z-layers: ( // #adminmenuwrap { z-index: 9990 } ".components-popover": 1000000, - // Shows adminbar quicklink submenu above bottom popover: - // #wpadminbar ul li {z-index: 99999;} - ".components-popover:not(.is-mobile).is-bottom": 99990, - - // Shows above edit post sidebar; Specificity needs to be higher than 3 classes. - ".block-editor__container .components-popover.components-color-palette__picker.is-bottom": 100001, - ".block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom": 100001, - ".edit-post-post-visibility__dialog.components-popover.is-bottom": 100001, + // ...Except for popovers immediately beneath wp-admin menu on large breakpoints + ".components-popover.block-editor-inserter__popover": 99998, + ".components-popover.table-of-contents__popover": 99998, + ".components-popover.block-editor-block-navigation__popover": 99998, + ".components-popover.edit-post-more-menu__content": 99998, + ".components-popover.block-editor-rich-text__inline-format-toolbar": 99998, ".components-autocomplete__results": 1000000, diff --git a/packages/block-editor/src/components/block-navigation/dropdown.js b/packages/block-editor/src/components/block-navigation/dropdown.js index 44021cf9b31a5a..b53dd49bdf4bdc 100644 --- a/packages/block-editor/src/components/block-navigation/dropdown.js +++ b/packages/block-editor/src/components/block-navigation/dropdown.js @@ -22,6 +22,7 @@ function BlockNavigationDropdown( { hasBlocks, isDisabled } ) { return ( ( <> { isEnabled &&