Skip to content

Commit

Permalink
changed background color of iframe instead of adding a new class
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Apr 25, 2024
1 parent 58b22d6 commit 133b07e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions packages/block-editor/src/components/block-canvas/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ iframe[name="editor-canvas"] {
height: 100%;
display: block;

&:not(.has-editor-padding):not(.is-zoomed-out) {
background-color: $white;
}

&.is-zoomed-out {
&:not(.has-editor-padding) {
background-color: $gray-300;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ function EditorCanvas( {
'edit-site-visual-editor__editor-canvas',
{
'is-focused': isFocused && canvasMode === 'view',
'is-zoomed-out': isZoomOutMode,
}
),
...props,
Expand Down

0 comments on commit 133b07e

Please sign in to comment.