[wp-trac] [WordPress Trac] #39261: Possible wrong base color for admin SVG-icons
WordPress Trac
noreply at wordpress.org
Fri Dec 15 14:42:32 UTC 2017
#39261: Possible wrong base color for admin SVG-icons
-------------------------+-------------------------------------------------
Reporter: robsat91 | Owner:
Type: defect | Status: new
(bug) | Milestone: Awaiting Review
Priority: normal | Version: 4.7
Component: General | Resolution:
Severity: normal | Focuses: ui, javascript, administration,
Keywords: | template
-------------------------+-------------------------------------------------
Comment (by RiccardoB.):
I confirm the issue: on 4.9.1 the color for icons.base is set to
{{{#82878c}}} but the admin icons are colored by this css:
{{{
#adminmenu div.wp-menu-image::before {
color: #a0a5aa;
color: rgba(240,245,250,.6);
}
}}}
so in previous @robsat91 temporary fix the {{{#9ea3a8}}} should become
{{{#a0a5aa}}}.
In addition we cannot set the correct rgba value because
{{{paintElement}}} function included in {{{wp-admin/js/svg-painter.js}}}
accepts only colors in hex formats according to lines 186-189:
{{{
// only accept hex colors: #101 or #101010
if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) {
return;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39261#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list