Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostFeaturedImage: Fix application of default border style in editor #44520

Merged
merged 1 commit into from
Sep 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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