Spacing issues since 6.6
-
Since version 6.6, all specific block spacings i’ve been setting in my theme.json file are ignored. For example, I defined my own margin for h2, which is now overwritten by the general BlockGap spacing. This code from the WordPress core seems to overwrite everything:
.is-layout-constrained > *,
.is-layout-flow > * {
margin-block-start: 3rem;
margin-block-end: 0;
}In my theme.json i defined:
blockGap: 3rem (for general)
and h2 for example: margin: 2.5rem 0 2.5rem 0;The margin, I defined for h2 are now overwritten by the margin-block-start (and end) commands.
Can someone tell me why does that happen now? I have this problem on all my client sites with different themes now.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.