Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Cover: Re-instate overflow:hidden rule to fix issue with border radius
  • Loading branch information
andrewserong committed May 1, 2023
commit aeaf491cd14c47f493f80363def6409c708cf584
3 changes: 3 additions & 0 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
justify-content: center;
align-items: center;
padding: 1em;
// Prevent the `wp-block-cover__background` span from overflowing the container when border-radius is applied.
// TODO: Find an alternative to `overflow: hidden` so that sticky elements can be used inside the cover block.
overflow: hidden;
// 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