Skip to content

Commit

Permalink
Fix overflowing patterns (#44853)
Browse files Browse the repository at this point in the history
* Fix overflowing patterns by using overflow:hidden

* Revert "Fix overflowing patterns by using overflow:hidden"

This reverts commit d47f721.

* Make pattern list items position: relative so that position: absolute visually hidden text is positioned correctly
  • Loading branch information
talldan authored and michalczaplinski committed Oct 18, 2022
1 parent 1736a08 commit 5f1a635
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
cursor: pointer;
margin-bottom: $grid-unit-30;

// The list item contains absolutely positioned visually hidden text,
// so make this container relative. This prevents the bug experienced in
// https://github.com/WordPress/gutenberg/issues/44842.
position: relative;

&.is-placeholder {
min-height: 100px;
}
Expand Down

0 comments on commit 5f1a635

Please sign in to comment.