Skip to content

Commit

Permalink
Try: Contextual frame bg color to avoid artifacting. (#62223)
Browse files Browse the repository at this point in the history
* Try: Contextual frame bg color to avoid artifacting.

* Try different fix.

Co-authored-by: jasmussen <[email protected]>
Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
4 people authored and ellatrix committed Jun 11, 2024
1 parent 1941487 commit 952532e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-canvas/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
iframe[name="editor-canvas"] {
box-sizing: border-box;
width: 100%;
height: 100%;
display: block;
background-color: $gray-300;
box-sizing: border-box;
background-color: transparent;
}
5 changes: 5 additions & 0 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
color: $gray-400;
display: flex;
flex-direction: column;

// Show a dark background in "frame" mode to avoid edge artifacts.
&:not(.is-full-canvas) .editor-visual-editor {
background: $gray-900;
}
}

.edit-site-layout__hub {
Expand Down

0 comments on commit 952532e

Please sign in to comment.