[wp-trac] [WordPress Trac] #48684: Twenty Twenty: Issue with primary color in the block editor

WordPress Trac noreply at wordpress.org
Mon May 11 19:36:15 UTC 2026


#48684: Twenty Twenty: Issue with primary color in the block editor
---------------------------------------+-----------------------------
 Reporter:  grafruessel                |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Future Release
Component:  Bundled Theme              |     Version:  5.3
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:  css
---------------------------------------+-----------------------------
Changes (by sabernhardt):

 * keywords:  has-screenshots needs-patch => has-screenshots has-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 [https://github.com/WordPress/twentytwenty/pull/980 PR 980] added the
 selectors for automatic contrast.

 I think all the elements that would need the text color have a `wp-block`
 class in the editor.
 {{{
 .wp-block:where(:not(.has-text-color))
 }}}

 To be more thorough, the selectors could use `:not()` for the editor's
 control components and anything inside them.
 {{{
 *:where(:not([class^="components-"]):not([class^="components-"] *)):not
 (.has-text-color)
 }}}

 I used `:where()` to avoid changing the specificity.

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


More information about the wp-trac mailing list