Skip to content

Commit

Permalink
Update featured image placeholder graphic. (#36712)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Nov 22, 2021
1 parent 77f9c3d commit 4f42392
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ const placeholderIllustration = (
fill="none"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 60 60"
preserveAspectRatio="xMidYMid slice" // @todo: "slice" matches the "cover" behavior, "meet" could be used for "container" and "fill" values.
preserveAspectRatio="none"
>
<Path
vectorEffect="non-scaling-stroke"
d="m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5"
/>
<Path vectorEffect="non-scaling-stroke" d="M60 60 0 0" />
</SVG>
);

Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/post-featured-image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
bottom: 0;
left: 0;
border: $border-width dashed currentColor;
opacity: 0.3;
opacity: 0.4;
pointer-events: none;

// Inherit border radius from style variations.
Expand Down Expand Up @@ -93,7 +93,7 @@
height: 100%;
stroke: currentColor;
stroke-dasharray: 3;
opacity: 0.3;
opacity: 0.4;
}

// Show default placeholder height when not resized.
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/site-logo/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
bottom: 0;
left: 0;
border: $border-width dashed currentColor;
opacity: 0.3;
opacity: 0.4;
pointer-events: none;

// Inherit border radius from style variations.
Expand Down Expand Up @@ -155,7 +155,7 @@
height: 100%;
stroke: currentColor;
stroke-dasharray: 3;
opacity: 0.3;
opacity: 0.4;
}
}

Expand Down

0 comments on commit 4f42392

Please sign in to comment.