[wp-trac] [WordPress Trac] #58071: List block forces padding on navigation block with background color
WordPress Trac
noreply at wordpress.org
Thu May 4 15:21:36 UTC 2023
#58071: List block forces padding on navigation block with background color
--------------------------+--------------------------------
Reporter: RavanH | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Editor | Version: 6.2
Severity: normal | Resolution: reported-upstream
Keywords: | Focuses:
--------------------------+--------------------------------
Comment (by RavanH):
Replying to [comment:1 sabernhardt]:
> Thanks for the report!
>
> We're already tracking this issue in
[https://github.com/WordPress/gutenberg/issues/36586 GB36586] if you would
like to follow it and/or add anything there.
I'm not sure. The general discussion about when and where additional
padding for blocks with a custom background color makes sense seems
unrelated to me. Everyone would agree (I think) that in the case of a
navigation block submenu item, no additional padding should be set. And
indeed it is not expressly given more padding than it already has.
The extra padding comes from a conflicting style rule for another block:
the List block. So it is only occurring on pages that include a List
block, not on other pages.
My suggestion would be to either make the List block CSS more specific to
list block UL/OL elements (extra `wp-block-list` class makes sense here)
or to add CSS to the Navigation block to neutralise the List block CSS
(makes less sense to me)...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58071#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list