Skip to content

Commit

Permalink
PostFeaturedImage: Fix application of default border style in editor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Sep 28, 2022
1 parent 4a4d110 commit 0cde605
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/block-library/src/post-featured-image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,19 @@

// Show default placeholder height when not resized.
min-height: 200px;
}

// The following override the default placeholder styles that remove
// its border so that a user selection for border color or width displays
// a visual border.
// The following override the default placeholder styles that remove
// its border so that a user selection for border color or width displays
// a visual border. They also override the `img { border: none; }` applied
// by core.
.wp-block-post-featured-image__placeholder,
.components-placeholder,
img {
// The following is required to overcome WP Core applying styles that clear
// img borders with a higher specificity than those added by the border
// block support to provide a default border-style of solid when a border
// color or width has been set.
&:where(.has-border-color) {
border-style: solid;
}
Expand Down

0 comments on commit 0cde605

Please sign in to comment.