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

Update featured image placeholder graphic. #36712

Merged
merged 1 commit into from
Nov 22, 2021
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
Update featured image placeholder graphic.
  • Loading branch information
jasmussen committed Nov 22, 2021
commit 41b838291b2998a42abe40c978c2a0181151daa7
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
@@ -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>
);

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
@@ -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.
@@ -93,7 +93,7 @@
height: 100%;
stroke: currentColor;
stroke-dasharray: 3;
opacity: 0.3;
opacity: 0.4;
}

// Show default placeholder height when not resized.
4 changes: 2 additions & 2 deletions packages/block-library/src/site-logo/editor.scss
Original file line number Diff line number Diff line change
@@ -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.
@@ -155,7 +155,7 @@
height: 100%;
stroke: currentColor;
stroke-dasharray: 3;
opacity: 0.3;
opacity: 0.4;
}
}