Can't set global background color for Post Template #59455
Labels
[Block] List
Affects the List Block
[Block] Post Template
Affects the Post Template Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Trying to set a background color for the Post Template block in global styles has no effect due to some overly-specific styling in the block CSS.
That was added in #37941 as a workaround for global styles for the List block bleeding into any other block that uses a
ul
(the same problem stands un-worked-around in the Navigation block)The sustainable solution here would be to add a classname to the List block so we can attach global styles to it without contaminating other blocks with lists in their markup. My suggestion is revisiting #12420. Cc @carolinan who did some work on it previously!
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: