Skip to content

Commit

Permalink
No need for transparent background as we're editing the pattern in place
Browse files Browse the repository at this point in the history
rebase
  • Loading branch information
ramonjd committed Mar 20, 2024
1 parent aca4127 commit a798e23
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions packages/edit-post/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ export default function VisualEditor( { styles } ) {
// We should auto-focus the canvas (title) on load.
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus={ ! isWelcomeGuideVisible }
iframeProps={ {
style: {
background: isEditingPattern
? 'transparent'
: undefined,
},
} }
/>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
// Matches `.is-focus-mode` padding in
// packages/edit-site/src/components/block-editor/style.scss.
&.is-focus-mode {
padding: $grid-unit-60;
padding: $grid-unit-30;
}
}

Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/components/editor-canvas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ function EditorCanvas( {
style: {
...iframeProps?.style,
...deviceStyles,
border: showEditorPadding ? undefined : 0,
},
} }
>
Expand Down

0 comments on commit a798e23

Please sign in to comment.