Skip to content

Commit

Permalink
Try: Alternate spacer min-height fix. (#32543)
Browse files Browse the repository at this point in the history
* Try: Alternate spacer min-height fix.

* Fix for horizontal spacers.
  • Loading branch information
jasmussen authored Jun 10, 2021
1 parent 3c722bf commit 12d9340
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/block-library/src/spacer/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
content: "";
display: block;
position: absolute;
z-index: 1;

// Horizontal spacer: span the full width, and provide a min-height for when it's 1px tall.
width: 100%;
height: $button-size-small;
transform: translateY(-#{$button-size-small / 2});
min-height: $grid-unit-10;

// Vertical spacer: span the height width, and provide a min-width for when it's 1px wide.
min-width: $grid-unit-10;
height: 100%;
}
}

Expand Down

0 comments on commit 12d9340

Please sign in to comment.