[wp-trac] [WordPress Trac] #61750: Spacing issues since 6.6 (Gutenberg with Block- or Hybrid Themes)

WordPress Trac noreply at wordpress.org
Thu Jul 25 06:13:44 UTC 2024


#61750: Spacing issues since 6.6 (Gutenberg with Block- or Hybrid Themes)
-------------------------+-------------------------------------------------
 Reporter:  dohu13       |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  6.6.1
 Severity:  normal       |   Keywords:  needs-patch 2nd-opinion needs-
  Focuses:  css          |  testing
-------------------------+-------------------------------------------------
 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.

 Here is a screenshot of my testing site: [http://test.lake-
 site.de/screenshot]

 As you can see, my own margin for h2 (defined in theme.json) is now
 overwritten by wordpress margin-block-start and margin-block-end taken
 from the BlockGap general settings (3rem) in theme.json. This happening
 now with all blocks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61750>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list