Skip to content

Commit

Permalink
Ensure that the resizeable placeholder has a consistent background co…
Browse files Browse the repository at this point in the history
…lor (white) and border.
  • Loading branch information
ramonjd committed Sep 28, 2021
1 parent e944310 commit f8ed363
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/block-library/src/cover/editor.scss
Expand Up @@ -9,6 +9,7 @@
&.is-placeholder {
min-height: auto !important;
padding: 0 !important;
border: $border-width solid $gray-900;
}

&.components-placeholder h2 {
Expand Down Expand Up @@ -117,8 +118,10 @@
background-attachment: scroll;
}

.cover-block__cover-placeholder-container {
background: white;
// Ensure the placeholder container styles are consistent when resizing.
.wp-block-cover.is-placeholder .cover-block__cover-placeholder-container {
background: $white;
width: 100%;
.block-editor-media-placeholder {
box-shadow: none;
}
Expand Down

0 comments on commit f8ed363

Please sign in to comment.