[wp-trac] [WordPress Trac] #52676: Twenty Twenty-One: In WP 5.7 RC, the Cover block's inner container wrongly inherits the background-color of its parent.

WordPress Trac noreply at wordpress.org
Mon Mar 1 23:24:28 UTC 2021


#52676: Twenty Twenty-One: In WP 5.7 RC, the Cover block's inner container wrongly
inherits the background-color of its parent.
--------------------------------------+---------------------
 Reporter:  dianeco                   |       Owner:  ryelle
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.7
Component:  Bundled Theme             |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  css
--------------------------------------+---------------------
Changes (by ryelle):

 * owner:  (none) => ryelle
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50466" 50466]:
 {{{
 #!CommitTicketReference repository="" revision="50466"
 Twenty Twenty-One: Correct inner container background color for Cover
 Blocks.

 Adjust the background color palette rules so they don't show up on inner
 containers when they're not supposed to:
 - When an inner container block is present, it only applies them to direct
 children of the block with the background color assigned.
 - Since the background color should only be applied to the Cover block's
 overlay, not to the inner container, it opts that specific block out of
 this rule.

 Props dianeco, kjellr, paaljoachim.
 Fixes #52676.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52676#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list