Skip to content
Prev Previous commit
Next Next commit
Border radius.
  • Loading branch information
jasmussen committed Oct 8, 2021
commit 197fa4f9fe0b0c77842ecfacf57ced9cef2af13e
8 changes: 6 additions & 2 deletions packages/block-library/src/site-logo/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
// and provides the on-hover upload button.
// That would also let it work with with less specificity.
.wp-block-site-logo.wp-block-site-logo {
// Inherit border radius from style variations.
.components-placeholder,
.components-resizable-box__container {
border-radius: inherit;
}

.components-placeholder {
justify-content: center;
align-items: center;
Expand All @@ -57,8 +63,6 @@
height: 120px;
padding: 0;

// Inherit border radius from style variations.
border-radius: inherit;

// Hide the upload button, as it's also available in the media library.
.components-form-file-upload {
Expand Down
5 changes: 4 additions & 1 deletion packages/block-library/src/site-logo/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
&.is-default-size img {
width: 120px;
height: auto;
}

// Inherit border radius from style variations.
// Inherit border radius from style variations.
&.is-default-size a,
&.is-default-size img {
border-radius: inherit;
}

Expand Down