Opened 12 months ago
Last modified 2 months ago
#21059 new enhancement
Customizer color picker has no remove button
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Appearance | Version: | 3.4 |
| Severity: | normal | Keywords: | |
| Cc: | justin@…, justnorris, me@… |
Description
There is no remove button for color picker in the customizer. It would be great if we could remove the color or set it to the default if we don't need the color.
Change History (6)
comment:1
SergeyBiryukov
— 12 months ago
- Component changed from General to Appearance
- Type changed from defect (bug) to enhancement
comment:2
greenshady
— 10 months ago
- Cc justin@… added
comment:3
SergeyBiryukov
— 10 months ago
Related: #21206
comment:5
justnorris
— 2 months ago
- Cc justnorris added
There is a "clear" button right now (3.5 & 3.6 Beta) when using
'default' => null,
'sanitize_callback' => 'sanitize_hex_color',
Clicking the "Clear" and saving does nothing, the user is still not able to change the color, even though a way to "clear" exists. This means that I must to specify the colors in PHP and CSS, which is not ideal.
comment:6
aniketpant
— 2 months ago
- Cc me@… added
I am not sure what you mean by the "clear" button. And if a button actually clears a color, what should it change to- transparent? Removing the color doesn't make sense.
The default button is available now which solves one part of your suggestion.
I could definitely use this. I just built a random background script that integrates with the 'custom-background' theme feature only to realize that the user will be forever stuck with their custom background color once they select one.