Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

#64415 closed defect (bug) (fixed)

Customizer: body element needs a CSS class for the color scheme

Reported by: wildworks's profile wildworks Owned by: wildworks's profile wildworks
Milestone: 7.0 Priority: normal
Severity: normal Version:
Component: Customize Keywords: has-patch commit
Focuses: Cc:

Description

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 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

Attachments (1)

customizer-screen.png (186.8 KB) - added by wildworks 5 weeks ago.
Launch the Command Palette in the Customizer Screen

Download all attachments as: .zip

Change History (6)

@wildworks
5 weeks ago

Launch the Command Palette in the Customizer Screen

This ticket was mentioned in PR #10630 on WordPress/wordpress-develop by @wildworks.


5 weeks ago
#1

  • Keywords has-patch added

#2 @soyebsalar01
5 weeks ago

I tested after patch and it is working properly
See the below Image:
https://ibb.co/BVDVDWhN

#3 @westonruter
5 weeks ago

  • Milestone changed from Awaiting Review to 7.0

#4 @wildworks
5 weeks ago

  • Keywords commit added
  • Owner set to wildworks
  • Status changed from new to assigned

#5 @wildworks
5 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 61385:

Customizer: Add admin color scheme class to body element.

This changeset injects a CSS class called admin-color-{slug} into the body element in the Customizer screen based on the admin color scheme setting.

Props soyebsalar01, westonruter, wildworks.
Fixes #64415.

Note: See TracTickets for help on using tickets.