[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 19:18:54 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:  5.7
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  css
---------------------------+------------------------------
Changes (by sabernhardt):

 * focuses:   => css
 * version:   => 5.7


Comment:

 [49987] introduced selectors that start with `.has-background .wp-block-
 search .wp-block-search__button`, and it also involved the Button and File
 blocks. The [https://github.com/WordPress/wordpress-
 develop/blob/181c8762745b47d3f474a76a1316c262a9ddf65e/src/wp-
 content/themes/twentytwentyone/assets/sass/02-tools/mixins.scss#L40-L47
 mixin] has a "Nested" note, but it sets only the text color without
 checking what the background is.

 The incorrect text color can happen on the front end with custom
 background colors. In the editor, it can also happen with theme colors
 (more consistently in the widget editor, but the current post editor seems
 fine when the parent block's theme preset background and body background
 are both light).

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


More information about the wp-trac mailing list