[wp-trac] [WordPress Trac] #58071: List block forces padding on navigation block with background color

WordPress Trac noreply at wordpress.org
Mon Apr 3 23:23:45 UTC 2023


#58071: List block forces padding on navigation block with background color
--------------------------+-----------------------------
 Reporter:  RavanH        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When a navigation block (in page content or in the block theme editor
 header) has a custom background color set, each UL element in the
 navigation list will have the class .has-background

 When adding a list block to a page or post, that page source will have
 block specific CSS:

 {{{
 <style id='wp-block-list-inline-css'>
     ol,ul {
         box-sizing: border-box
     }

     ol.has-background,ul.has-background {
         padding: 1.25em 2.375em
     }
 </style>
 }}}

 This will give the navigation menu an enormous and undesired padding, on
 each page or post that has a list block.

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


More information about the wp-trac mailing list