[wp-trac] [WordPress Trac] #49613: TwentyNineteen: Editor style interferes with navigation menu.

WordPress Trac noreply at wordpress.org
Tue Mar 10 12:35:59 UTC 2020


#49613: TwentyNineteen: Editor style interferes with navigation menu.
---------------------------+-----------------------------
 Reporter:  Joen           |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:                 |
---------------------------+-----------------------------
 This issue is only present in the latest master version of the Gutenberg
 plugin.

 The following rule is present in the TwentyNineteen editor style:


 {{{
 .wp-block .wp-block {
         width: 100%;
 }
 }}}

 This rule was created, if I recall correctly, to adjust the dimensions of
 nested blocks, and override another rule that set the width of top level
 blocks to a complex calc rule.

 As of https://github.com/WordPress/gutenberg/pull/20729, however, this
 rule now unintentionally targets navigation menu items, which should show
 up horizontally in a flow. Specifically, the width of the .wp-block-
 navigation-link must be auto, or it won't work.

 Suggest refactoring the rule above to only target top level blocks in
 different manner, or use the same rule but apply width: initial; instead,
 if possible.

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


More information about the wp-trac mailing list