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 ockham committed Oct 18, 2022
1 parent e888e76 commit 9b2c96a
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 9b2c96a

Please sign in to comment.