Skip to content

Commit

Permalink
fix: ensure style rules on iframed editor
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Jan 14, 2022
1 parent e2208a5 commit 7d13909
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/init-modal/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@
border-color: var( --wp-admin-theme-color );
}

.block-editor-block-preview__container {
.block-editor-block-preview__container,
.block-editor-block-preview__content-iframe {
cursor: pointer;
position: absolute;
top: 0;
Expand Down Expand Up @@ -341,7 +342,8 @@
}

// Posts Inserter - Preview
.block-editor-block-preview__container {
.block-editor-block-preview__container,
.block-editor-block-preview__content-iframe {
background: transparent;

.wp-block[data-type='newspack-newsletters/posts-inserter'] {
Expand Down
3 changes: 2 additions & 1 deletion src/newsletter-editor/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
z-index: 1;
}

.block-editor-block-preview__container {
.block-editor-block-preview__container,
.block-editor-block-preview__content-iframe {
position: absolute;
top: 0;

Expand Down

0 comments on commit 7d13909

Please sign in to comment.