[wp-trac] [WordPress Trac] #57250: Twenty Twenty theme quote block ciation is having issue with text color.

WordPress Trac noreply at wordpress.org
Tue Dec 6 05:36:15 UTC 2022


#57250: Twenty Twenty theme quote block ciation is having issue with text color.
-------------------------------------------------+-------------------------
 Reporter:  nidhidhandhukiya                     |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info has-screenshots     |     Focuses:  css
  has-patch                                      |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  has-testing-info has-screenshots has-patch commit => has-
     testing-info has-screenshots has-patch


Comment:

 Before inheriting colors, the selector needs to check whether someone
 chose a color (text and/or background).

 The current patch would change the text color in both Quote and Pullquote
 blocks that do not specify any special color. It also can affect content
 made **without the block editor** at all.

 Adding another class should be enough to avoid `!important`, too.
 {{{
 .wp-block-quote.has-text-color cite,
 .wp-block-pullquote.has-text-color cite {
   color: inherit;
 }
 }}}

 Related tickets include #56006 and #56008.

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


More information about the wp-trac mailing list