[wp-trac] [WordPress Trac] #63245: Twenty Twenty-One: Search block submit button text is invisible when wrapped in a block with background color

WordPress Trac noreply at wordpress.org
Mon Apr 7 11:20:46 UTC 2025


#63245: Twenty Twenty-One: Search block submit button text is invisible when
wrapped in a block with background color
---------------------------+-----------------------------
 Reporter:  wildworks      |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 HTML Example:

 {{{
 <!-- wp:group
 {"style":{"color":{"background":"#aaaaaa"}},"layout":{"type":"constrained"}}
 --<!-- wp:group
 {"style":{"color":{"background":"#aaaaaa"}},"layout":{"type":"constrained"}}
 -->
 <div class="wp-block-group has-background" style="background-
 color:#aaaaaa">
 <!-- wp:search {"label":"Default Search Block","buttonText":"Search"} /-->
 <!-- wp:search {"label":"Button
 Inside","buttonText":"Search","buttonPosition":"button-inside"} /-->
 </div>
 <!-- /wp:group -->
 }}}

 I found this problem when I was reviewing
 https://github.com/WordPress/gutenberg/pull/69624.

 Other themes do not have this issue, see this screenshot:
 https://github.com/WordPress/gutenberg/pull/69624#pullrequestreview-2746451320

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


More information about the wp-trac mailing list