[wp-trac] [WordPress Trac] #54550: The margin added at the top level styles (for body) in theme.json is override by a margin added from Gutenberg

WordPress Trac noreply at wordpress.org
Mon Dec 6 22:40:59 UTC 2021


#54550: The margin added at the top level styles (for body) in theme.json is
override by a margin added from Gutenberg
------------------------------+-----------------------------
 Reporter:  get_dave          |       Owner:  hellofromTonya
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.9
Component:  General           |     Version:  trunk
 Severity:  minor             |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52329" 52329]:
 {{{
 #!CommitTicketReference repository="" revision="52329"
 Editor: Allow theme.json to take precedence in setting the root level
 element's reset margin value.

 Any margin added to the root element via `theme.json` is overwritten by a
 CSS reset margin value provided by the Gutenberg Plugin.

 This commit makes `theme.json` setting take precedence by generating the
 global styles body reset prior to processing the theme.json.

 Follow-up to [52049].

 Props get_dave, hellofromTonya.
 Fixes #54550.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54550#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list