[wp-trac] [WordPress Trac] #38263: Color picker: add a hue-only mode

WordPress Trac noreply at wordpress.org
Mon Oct 24 20:27:53 UTC 2016


#38263: Color picker: add a hue-only mode
------------------------------+--------------------------
 Reporter:  celloexpressions  |       Owner:  westonruter
     Type:  enhancement       |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.7
Component:  Customize         |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:  javascript
------------------------------+--------------------------
Changes (by westonruter):

 * keywords:  has-patch commit => needs-patch


Comment:

 @mattwiebe there's one thing missing I see. It's missing the two-way data
 binding between the hue control and the setting. The non-hue color picker
 will update the setting value when a different color is chosen, and
 likewise when the underlying setting is programmatically changed the color
 picker control selects the new color via this code:


 {{{#!js
 this.setting.bind( function ( value ) {
         picker.val( value );
         picker.wpColorPicker( 'color', value );
 });
 }}}

 This part is missing from the hue control. Could you incorporate?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38263#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list