Opened 12 years ago
Closed 12 years ago
#22461 closed defect (bug) (fixed)
Remove header text 'restore' button left over from Farbtastic
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
In custom-header.php
, the old Farbtastic color picker relied on a separate button to reset back to the theme default text color. We don't need it anymore.
Patch attached.
Attachments (5)
Change History (23)
#5
in reply to:
↑ 4
@
12 years ago
Replying to nacin:
Could this still be needed for no JS?
It's my understanding this is in no way connected to the new Iris color picker. That's not to say it couldn't be hooked up to it, but in its current form, it was part of Farbtastic.
Edit: I should add that the no-js fallback should just be a textbox, as it was pre-3.4, so I'm not sure this button would be useful in any current context.
#6
follow-up:
↓ 7
@
12 years ago
I guess it does help with no JS, since it's an actual form submit, but the fallback to an input is there as well.
#7
in reply to:
↑ 6
;
follow-up:
↓ 8
@
12 years ago
Replying to helenyhou:
I guess it does help with no JS, since it's an actual form submit, but the fallback to an input is there as well.
Right, but does the input allow for falling back (resetting) to the default color?
#8
in reply to:
↑ 7
;
follow-up:
↓ 9
@
12 years ago
- Keywords commit removed
Replying to nacin:
Right, but does the input allow for falling back (resetting) to the default color?
Nope, unless you knew what it was and enter it yourself. Wonder if we can make a generic fallback for resetting to default. Too late?
#9
in reply to:
↑ 8
@
12 years ago
Replying to helenyhou:
Nope, unless you knew what it was and enter it yourself. Wonder if we can make a generic fallback for resetting to default. Too late?
What about just falling back to a text input and outputting a label next to it with the default color?
Header Text Color #[ ] Default: #000000
#10
@
12 years ago
- Cc xoodrew@… added
An approach similar to comment:9 is in 22461.2.diff and looks like this:
Also note the vertical alignments seem generally off in Chrome.
#12
@
12 years ago
Looks good to me. Also noticed there's an extra space after the hex code in the printf we can remove.
#13
@
12 years ago
22461.4.diff just removed the errant space in the string.
#14
@
12 years ago
22461.5.diff is looking good to me. Thanks for remembering to remove the $_POST part :)
Man, that text was confusing to begin with. I was looking at this patch wondering since when you could restore header text and what it would even restore to, and what restoring it had to do with the color mod.