[wp-trac] [WordPress Trac] #64415: Customizer: body element needs a CSS class for the color scheme
WordPress Trac
noreply at wordpress.org
Mon Dec 15 02:03:35 UTC 2025
#64415: Customizer: body element needs a CSS class for the color scheme
--------------------------+-----------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The dashboard injects CSS classes like `admin-color-{slug}` into the body
element based on the Admin Color Scheme setting, but the Customizer does
not.
Gutenberg has
[https://github.com/WordPress/gutenberg/blob/6fceeb26c56d8cdbf02052e99f153caee17f3fa6/packages
/base-styles/_mixins.scss#L532 a mixin] that allows us to apply a color
scheme to components based on this CSS class.
As a result, the color scheme is not applied to the command palette in the
Customizer screen.
=== Steps to Reproduce
- Go to Users > admin
- Select any scheme other than the default scheme
- Activate Twenty Twenty-One
- Go to Appearance > Customize
- Launch the Command Palette (Cmd+K on Mac or Ctrl+K on Windows)
- Type some characters
- The selected command item has a default (fresh) color
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64415>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list