[wp-trac] [WordPress Trac] #54056: Twenty Twenty: Editor title alignment broken by Gutenberg plugin v11.4.0 updates

WordPress Trac noreply at wordpress.org
Wed Sep 1 20:48:52 UTC 2021


#54056: Twenty Twenty: Editor title alignment broken by Gutenberg plugin v11.4.0
updates
---------------------------+-----------------------------
 Reporter:  shireling      |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 The in-editor styles for the post/page title no longer properly update the
 alignment or size of the post/page title after the
 [https://github.com/WordPress/gutenberg/pull/31569 implementation of the
 rich text hook for post titles in Gutenberg 11.4.0.]

 In the screenshot below, styling under Gutenberg 11.3.0 can be seen on the
 left, and 11.4.0 on the right:

 https://d.pr/i/MPmXEr

 It looks like editor styles are targeting
 `.editor-styles-wrapper .wp-block h1`
 instead of
 `.editor-styles-wrapper h1.wp-block`
 that Gutenberg is now outputting.

 This change also introduces markup changes that break the current
 targeting the post title of
 `.editor-styles-wrapper .editor-post-title__block .editor-post-
 title__input`
 Under the new markup

 Finally, the title block itself was previously wrapped in an additional
 `div` that is no longer present. This `div` was generating the margins
 that helped to center the title above the post content.

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


More information about the wp-trac mailing list