Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/base-styles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Remove `.components-resizable-box__handle`, `.components-resizable-box__side-handle`, and `.components-resizable-box__corner-handle` from the `z-index()` helper ([#77620](https://github.com/WordPress/gutenberg/pull/77620)).
- Remove `.components-form-toggle__input` from the `z-index()` helper ([#77619](https://github.com/WordPress/gutenberg/pull/77619)).
- Remove `.interface-complementary-area .components-panel` and `.interface-complementary-area .components-panel__header` from the `z-index()` helper ([#77717](https://github.com/WordPress/gutenberg/pull/77717)).
- Remove `.components-button {:focus or .is-primary}` from the `z-index()` helper ([#77621](https://github.com/WordPress/gutenberg/pull/77621)).

## 6.20.0 (2026-04-15)
Expand Down
4 changes: 0 additions & 4 deletions packages/base-styles/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ $z-layers: (
".block-library-query-pattern__selection-search": 2, // higher sticky element
".editor-post-template__swap-template-search": 2, // higher sticky element

// These next two share a stacking context
".interface-complementary-area .components-panel" : 0, // lower scrolling content
".interface-complementary-area .components-panel__header": 1, // higher sticky element

".components-modal__header": 10,
".edit-post-meta-boxes-area.is-loading::before": 1,
".edit-post-meta-boxes-area .spinner": 5,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use "@wordpress/base-styles/colors" as *;
@use "@wordpress/base-styles/mixins" as *;
@use "@wordpress/base-styles/variables" as *;
@use "@wordpress/base-styles/z-index" as *;

.interface-complementary-area {
background: $white;
Expand All @@ -17,13 +16,13 @@
border: none;
// Make a stacking context that keeps all descendents behind the sticky header
position: relative;
z-index: z-index(".interface-complementary-area .components-panel");
z-index: 0;
}

.components-panel__header {
position: sticky;
top: 0;
z-index: z-index(".interface-complementary-area .components-panel__header");
z-index: 1;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
z-index: 1;
// Sit above the panel's scrolling content within the stacking context above.
z-index: 1;


&.editor-sidebar__panel-tabs {
top: 0;
Expand Down
Loading