[wp-trac] [WordPress Trac] #30488: Switching between Admin Color Schemes does not immediately update the body class.
WordPress Trac
noreply at wordpress.org
Wed Nov 26 03:54:04 UTC 2014
#30488: Switching between Admin Color Schemes does not immediately update the body
class.
-----------------------------+---------------------------------------------
Reporter: valendesigns | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev- | Focuses: ui, javascript, administration
feedback |
-----------------------------+---------------------------------------------
Comment (by valendesigns):
Replying to [comment:4 johnbillion]:
> I'd be interested in knowing what changes you make to your icon based on
the colour scheme.
Originally I was going to simply replace the darker version with a lighter
version for certain schemes by hiding the image and adding the alternative
to the background of the container. However, due to the body class
limitation I went a different route. In the end I created an `svg` and
turned it into a font. Which was the best solution, and much more seamless
for UX. Still, having the class properly switch makes sense; even if I
don't need it anymore. Not everyone has the option to turn their icon into
a font.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30488#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list