Skip to content

Commit

Permalink
Cover Block: Restore overflow: clip rule to allow border radius again
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Feb 27, 2024
1 parent 8f61b9b commit a1175f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
padding: 1em;
// Prevent the `wp-block-cover__background` span from overflowing the container when border-radius is applied.
// Use clip instead of overflow: hidden so that sticky position works on child elements.
// Use overflow-x instead of overflow so that aspect-ratio allows content to expand the area of the cover block.
overflow-x: clip;
overflow: clip;
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
// Keep the flex layout direction to the physical direction (LTR) in RTL languages.
Expand Down

0 comments on commit a1175f6

Please sign in to comment.