Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#42236 closed defect (bug) (fixed)

CSS active class color do not update with chosen color scheme

Reported by: sayedwp Owned by: helen
Milestone: 4.9 Priority: normal
Severity: normal Version: 4.4
Component: General Keywords: has-patch needs-testing commit
Focuses: ui Cc:

Description (last modified by westonruter)

When the publish settings section opens, an active class is applied to it. And when the color scheme changes, the color should change by the color scheme.


The same thing would happen if we add active class to any button in WordPress admin.


Originally: Please see https://core.trac.wordpress.org/ticket/39896#comment:115

Attachments (1)

42236.diff (504 bytes) - added by helen 3 years ago.

Download all attachments as: .zip

Change History (11)

#1 @westonruter
3 years ago

  • Description modified (diff)
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 4.9
  • Owner set to helen
  • Status changed from new to assigned
  • Version changed from 4.8.2 to 4.4

@helen It looks like maybe this is something that was missed in [34948]?

#2 @westonruter
3 years ago

  • Description modified (diff)

3 years ago

#3 @helen
3 years ago

I guess this is the first time we're actually using that .active class for something besides documentation. 42236.diff fixes it for me in core's color schemes - not sure what people are doing to generate custom ones, and I believe a number of plugins will need to be updated accordingly. So, testing and feedback appreciated.

#4 @melchoyce
3 years ago

  • Keywords has-patch needs-testing added; needs-patch removed

#5 @sayedwp
3 years ago

Looking good now 👍

Without focus and active class:


With Focus and active class:


#6 @sayedwp
3 years ago

Changing color as expected.


This ticket was mentioned in Slack in #core-customize by sayedwp. View the logs.

3 years ago

This ticket was mentioned in Slack in #core by jeffpaul. View the logs.

3 years ago

#9 @westonruter
3 years ago

  • Keywords commit added

#10 @helen
3 years ago

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

In 41984:

Buttons: Ensure active styling applies to both :active and .active.

props sayedwp, helen.
fixes #42236.

Note: See TracTickets for help on using tickets.