[wp-trac] [WordPress Trac] #38093: WP_Customize_Color_Control - there is no option for transparent color
WordPress Trac
noreply at wordpress.org
Mon Sep 19 18:09:47 UTC 2016
#38093: WP_Customize_Color_Control - there is no option for transparent color
-------------------------+------------------------------
Reporter: mukesh27 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 3.5
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: ui, javascript
-------------------------+------------------------------
Changes (by celloexpressions):
* keywords: => 2nd-opinion
* focuses: javascript, administration, performance => ui, javascript
* type: feature request => enhancement
* version: 4.6.1 => 3.5
Comment:
This was discussed at some length when the color picker was introduced in
#21206. I generally still agree with the reasoning there that allowing
transparency generally results in a bad experience for end users. A
transparent checkbox has been agreed as not a great solution in
particular.
RGBA might be an interesting option, and could be a parameter on the color
control class so that it's only enabled when a particular feature calls
for it. However, it introduces challenges for saving the associated
setting and would require new sanitization functions, etc. A similar
effect can be achieved by adding a color control followed by a generic
control with `'type' => 'range'` and building the CSS back out of the two
settings on the output side. I don't think core should add the complexity
of rgba support to the core control, but does anyone else have opinions
here?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38093#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list