[wp-trac] [WordPress Trac] #21206: Replace Farbtastic color picker with ???...

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 26 21:14:15 UTC 2012


#21206: Replace Farbtastic color picker with ???...
-----------------------------------+------------------
 Reporter:  lessbloat              |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  3.5
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch ux-feedback  |
-----------------------------------+------------------

Comment (by mattwiebe):

 Use iris-picker-6.diff - ignore iris-picker-5.diff (forgot to svn add some
 stuff)

 Did a lot of fine-tuning of Iris and the underlying Color.js library to
 get this in a good spot. Here's what's in now:

 * Allow blank values in the input box, and fire the 'clear' callback when
 this happens
 * Show error states on an unacceptable color (the underlying Color.js lib
 will understand any CSS color, but not CSS keywords)
 * `wpColorPicker` now has a get/set `color` method to provide the current
 color in other scripts. Eg `$("#input").wpColorPicker('color'); // returns
 hex string` and `$("#input").wpColorPicker('color', newColor);`
 * Mouse accessibility: the control will now open on both enter & space
 keypresses (was just space before)
 * The "Pick Color" string now gets pulled via `content: attr( title )` in
 the CSS to make it i18n-able.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21206#comment:41>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list