Skip to content

Commit 1863e49

Browse files
jasmussenjasmussenMaggieCabrerayouknowriad
authored
Try: Contextual frame bg color to avoid artifacting. (#62223)
* 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]>
1 parent e70db92 commit 1863e49

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
iframe[name="editor-canvas"] {
2+
box-sizing: border-box;
23
width: 100%;
34
height: 100%;
45
display: block;
5-
background-color: $gray-300;
6-
box-sizing: border-box;
6+
background-color: transparent;
77
}

packages/edit-site/src/components/layout/style.scss

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
color: $gray-400;
55
display: flex;
66
flex-direction: column;
7+
8+
// Show a dark background in "frame" mode to avoid edge artifacts.
9+
&:not(.is-full-canvas) .editor-visual-editor {
10+
background: $gray-900;
11+
}
712
}
813

914
.edit-site-layout__hub {

0 commit comments

Comments
 (0)