Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Refine application of borders and display in editor
This still isn't perfect. The cover content/background appears to be "under" dashed/dotted borders in the editor but are instead contained within them on the frontend.
  • Loading branch information
aaronrobertshaw committed May 16, 2022
commit ac7cdcdb78c4f1f1a7d0e50a8b858bdf235e44ca
7 changes: 6 additions & 1 deletion packages/block-library/src/cover/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
margin-left: auto;
}

.block-library-cover__resize-container {
.block-library-cover__resize-container,
.block-library-cover__border-visualizer {
position: absolute !important;
top: 0;
left: 0;
Expand All @@ -84,6 +85,10 @@
min-height: 50px;
}

.block-library-cover__border-visualizer {
z-index: z-index(".wp-block-cover.has-background-dim::before");
}

.block-library-cover__resize-container:not(.is-resizing) {
// Important is used to have higher specificity than the inline style set by re-resizable library.
height: auto !important;
Expand Down