Skip to content

Commit

Permalink
Update placeholder style (#44190)
Browse files Browse the repository at this point in the history
* Removes the dashed strokes in favor of solid.
  • Loading branch information
jameskoster authored Sep 26, 2022
1 parent 7829913 commit 5d1699a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
13 changes: 12 additions & 1 deletion packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,19 @@
}

@mixin placeholder-style() {
border: $border-width dashed currentColor;
border-radius: $radius-block-ui;

&::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
background: currentColor;
opacity: 0.1;
}
}

/**
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
.components-placeholder__illustration {
display: none;
}

&::before {
opacity: 0;
}
}

// Remove the transition while we still have a legacy placeholder style.
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,5 @@
width: 100%;
height: 100%;
stroke: currentColor;
stroke-dasharray: 3;
opacity: 0.25;
}

0 comments on commit 5d1699a

Please sign in to comment.