-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Remove unrequired margins from the columns block #21615
Fix: Remove unrequired margins from the columns block #21615
Conversation
Size Change: -16 B (0%) Total Size: 839 kB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Confirmed with two column blocks in editor, margins work properly after applying.
@jorgefilipecosta I set the margin to 0 so the margin is collapsed and inherits the margin of the column's children. I still believe this is the right way to do it. Cc @jasmussen Currently column with a paragraph will have a margin that is twice as big: |
Correct Ella, excellent catch. Picture this:
In the above setup, every block has margins. Which means we could be looking at double or triple margins for paragraphs inside columns. So it makes a lot of sense to set a zero top and bottom margin for the column block so that the paragraph margin is the one that applies instead. The issue Jorge outlines appears to be specific to the placeholder component, to which the padding could still be applied if we like. |
Yeah, it seems like the margins should apply specifically to placeholders. |
Description
PR #19910 cc: @ellatrix, set margins on columns block to 0. This is causing some visual issues when multiple columns are added and on the widgets screen. It seems the columns block margin should be the same as the other blocks.
Before:
After: