Skip to content

Commit

Permalink
Post Editor: Prevent popover from being hidden by metabox
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jul 25, 2024
1 parent ae83155 commit 071a5bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/edit-post/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
clear: both;
}

.edit-post-layout .interface-interface-skeleton__body {
// Make this a stacking context to contain the z-index of children elements.
isolation: isolate;
}

// Adjust the position of the notices
.components-editor-notices__snackbar {
position: fixed;
Expand Down
5 changes: 5 additions & 0 deletions packages/edit-site/src/components/editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
transition: opacity 0.1s ease-out;
@include reduce-motion("transition");

.interface-interface-skeleton__body {
// Make this a stacking context to contain the z-index of children elements.
isolation: isolate;
}

&.is-loading {
opacity: 0;
}
Expand Down
2 changes: 0 additions & 2 deletions packages/editor/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
position: relative;
display: block;
background-color: $gray-300;
// Make this a stacking context to contain the z-index of children elements.
isolation: isolate;

// Centralize the editor horizontally (flex-direction is column).
align-items: center;
Expand Down

0 comments on commit 071a5bd

Please sign in to comment.