Opened 17 months ago
Closed 9 months ago
#19616 closed enhancement (duplicate)
Color Picker consistency
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | UI | Version: | 3.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | michael.d.beckwith@…, sabreuse@…, lancewillett, melissachoyce@…, sararcannon@…, georgemamadashvili@… |
Description
The color pickers used on the custom background page and custom header pages appear and behave slightly differently.
On the Custom Background page, the picker uses a non-button/text trigger, and once a color is entered a 'clear' option is added.
On the Custom Header page, the picker uses a button trigger. No 'clear' option is offered.
Twenty Eleven's Theme Options includes another variation:
It is very similar to the Custom Header style, but with an added color swatch preview.
Attachments (6)
Change History (29)
- Keywords needs-patch added
- Type changed from defect (bug) to enhancement
Here's the custom-background.php diff file. It was pretty straightforward overall. I didn't include the little swatch preview because of the preview at the top is so prominent. http://core.trac.wordpress.org/attachment/ticket/19616/custombg.diff
A bit curious how to go about the color swatch option. I believe a lot of that part is utilizing some jquery + css, to restrict the size of the swatch and make it clickable with the color wheel. However, as I'm still new to the core editing, I am not sure which files the js/css should go into.
Just added the diff files for adding the color swatch for the Custom Header page
comment:10
lancewillett — 15 months ago
- Cc lancewillett added
comment:11
nacin — 14 months ago
- Keywords needs-refresh commit added
This needs a slight refresh for trunk, I imagine.
comment:12
follow-up:
↓ 13
aaroncampbell — 14 months ago
- Keywords needs-refresh removed
The new patch (19616.diff) moves everything to the Twentyeleven style with the swatch. I like the swatch, it seems like the friendliest option. I also went with the button instead of the link and added the clear link when a color is selected. I even did that on the background page for two reasons:
- Consistency is nice, even if there are two color previews (swatch and big preview box at the top)
- If the background image is set to tile, you can't see the background color. I know that this means you can't see the background color on the site either (in theory), but since the color picker is still there having the swatch makes it more usable.
comment:13
in reply to:
↑ 12
;
follow-up:
↓ 14
lancewillett — 14 months ago
Replying to aaroncampbell:
The new patch (19616.diff) moves everything to the Twentyeleven style with the swatch.
One issue I saw in testing: the swatch should trigger the same click event as the "Select a Color" button (broken in both Background and Header).
The rest tests out, works as expected.
aaroncampbell — 14 months ago
comment:14
in reply to:
↑ 13
aaroncampbell — 14 months ago
Replying to lancewillett:
One issue I saw in testing: the swatch should trigger the same click event as the "Select a Color" button (broken in both Background and Header).
Good catch. Fixed it in 19616.2.diff
comment:15
nacin — 13 months ago
- Milestone changed from 3.4 to Future Release
17:13 koopersmith For the love of everything, punt.
comment:16
scribu — 11 months ago
Related: #21206
comment:17
johnbillion — 10 months ago
comment:18
scribu — 10 months ago
- Keywords commit removed
comment:19
meliko — 10 months ago
- Cc melissachoyce@… added
comment:20
saracannon — 10 months ago
- Cc sararcannon@… added
comment:21
Mamaduka — 10 months ago
- Cc georgemamadashvili@… added
comment:22
downstairsdev — 9 months ago
This issue has been addressed with the new colorpicker. See: http://core.trac.wordpress.org/ticket/21206
A patch has been submitted if anyone wants to help test.
comment:23
scribu — 9 months ago
- Milestone Future Release deleted
- Resolution set to duplicate
- Status changed from new to closed




+1