Skip to content

Commit

Permalink
Try: Fix notices below block toolbars.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed May 26, 2021
1 parent 50e78fc commit 1f46408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 0 additions & 4 deletions packages/base-styles/_z-index.scss
Expand Up @@ -114,10 +114,6 @@ $z-layers: (
// Show the FSE template previews above the editor and any open block toolbars
".edit-site-navigation-panel__preview": 32,

// Show notices below expanded editor bar
// .edit-post-header { z-index: 30 }
".components-notice-list": 29,

// Above the block list and the header.
".block-editor-block-list__block-popover": 31,

Expand Down
14 changes: 2 additions & 12 deletions packages/editor/src/components/editor-notices/style.scss
@@ -1,22 +1,12 @@
// Dismissible notices.
.components-editor-notices__dismissible {
position: sticky;
top: 0;
right: 0;
color: $gray-900;
}

// Non-dismissible notices.
// Dismissible & non-dismissible notices.
.components-editor-notices__dismissible,
.components-editor-notices__pinned {
position: relative;
left: 0;
top: 0;
right: 0;
color: $gray-900;
}

.components-editor-notices__dismissible,
.components-editor-notices__pinned {
.components-notice {
box-sizing: border-box;
margin: 0;
Expand Down

0 comments on commit 1f46408

Please sign in to comment.