[wp-trac] [WordPress Trac] #38093: WP_Customize_Color_Control - Color Transparency

WordPress Trac noreply at wordpress.org
Thu Mar 27 12:58:40 UTC 2025


#38093: WP_Customize_Color_Control - Color Transparency
-------------------------+-----------------------------
 Reporter:  mukesh27     |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Customize    |     Version:  3.5
 Severity:  normal       |  Resolution:  invalid
 Keywords:  2nd-opinion  |     Focuses:  ui, javascript
-------------------------+-----------------------------
Changes (by vyasnaman):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 The `color-picker` supports "clear" button if default color is not
 provided.

 Inside `color-picker.js`:
 {{{
 // Set up the Clear/Default button.
 if ( self.options.defaultColor ) {
         self.button
                 .addClass( 'wp-picker-default' )
                 .val( __( 'Default' ) )
                 .attr( 'aria-label', __( 'Select default color' ) );
 } else {
         self.button
                 .addClass( 'wp-picker-clear' )
                 .val( __( 'Clear' ) )
                 .attr( 'aria-label', __( 'Clear color' ) );
 }
 }}}

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


More information about the wp-trac mailing list