Skip to content

Commit

Permalink
Try: Title block gap. (#34570)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Sep 6, 2021
1 parent faf3e98 commit ff2c438
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/edit-post/src/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
margin-right: auto;

// Margins between the title and the first block, or appender, do not collapse.
// By explicitly setting this to zero, we avoid "double margin".
margin-bottom: 0;
// However in that support block gap, the first items in post content do not have a top margin.
// By leveraging the gap variable, with a fallback of zero, we handle both cases.
margin-bottom: var(--wp--style--block-gap, 0);
}
}

Expand Down

0 comments on commit ff2c438

Please sign in to comment.