Open porg opened 1 year ago
.has-overflow-hidden { overflow: hidden; }
.has-rounded-edges-30 { overflow: hidden; border-radius: var(--wp--preset--spacing--30); }
.has-rounded-edges-40 { overflow: hidden; border-radius: var(--wp--preset--spacing--30); }
.has-overflow-hidden
and the border-radius you can set in the Block Editor UI.has-overflow-hidden
and a size helper class like .has-rounded-edges-30
to overcome #41345@porg
Thanks for submitting the issue.
I think this problem would occur in all orientations, whether above or below. As seen in the CSS helper class you presented, the solution to this problem would be to apply overflow:hidden
in the block to which the border-radius
is applied. However, it would need to be thoroughly tested to ensure that it does not cut off something unintended.
I would mark this issue as an enhancement, not a bug.
It is okay that you changed the type from bug to enhancement.
Thanks for the input what was the exact missing attribute. Updated my above comment to differentiate between the current state of Column (no border-radius UI controls at all, see #41345 ) and Group (just needs overflow:hidden
so that the UI option border-radius
gets really into effect).
Description
User Need
41345 and my personal application
Reproduction
Expected: You get 4 rounded edges. Content of the nested blocks is clipped on all 4 edges.
Actual: Only the bottom-left and bottom-right edge get rounded and clip their content.
Attempted workarounds: Tried with various blocks (Paragraph, Bullet List, Image block, 3rd party Gutenslider block). Also tried themself alone, or wrapped within another group. Did not help. On the top the sharp edges always remained. Content was not clipped.
https://github.com/WordPress/gutenberg/assets/737143/218e5867-cf20-4666-b1ed-5b1ce9e7b9b7
Environment
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No