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 Oct 11, 2022
1 parent b5173bd commit e636b60
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 e636b60

Please sign in to comment.