Skip to content
Prev Previous commit
Use correct z-index
  • Loading branch information
Mamaduka committed Jul 19, 2022
commit fa3bfca0cb0652793e1d810646dc7beb8c9c7340
1 change: 1 addition & 0 deletions packages/base-styles/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $z-layers: (
".block-editor-inserter__tabs .components-tab-panel__tab-content": 0, // lower scrolling content
".block-editor-inserter__tabs .components-tab-panel__tabs": 1, // higher sticky element
".block-editor-inserter__search": 1, // higher sticky element
".block-library-template-part__selection-search": 1, // higher sticky element

// These next two share a stacking context
".interface-complementary-area .components-panel" : 0, // lower scrolling content
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/template-part/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

.block-library-template-part__selection-search {
background: $white;
z-index: z-index(".block-editor-template-part__selection-modal");
position: sticky;
top: 0;
padding: $grid-unit-20 0;
z-index: z-index(".block-library-template-part__selection-search");
}