Changeset 60478
- Timestamp:
- 07/16/2025 10:50:07 PM (4 months ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
- wp-content/themes/twentynineteen/inc/customizer.php (modified) (1 diff)
- wp-content/themes/twentynineteen/js/customize-controls.js (modified) (1 diff)
- wp-content/themes/twentyseventeen/assets/js/customize-controls.js (modified) (1 diff)
- wp-content/themes/twentyseventeen/inc/customizer.php (modified) (1 diff)
- wp-content/themes/twentytwenty/assets/js/customize.js (modified) (1 diff)
- wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php (modified) (1 diff)
- wp-includes/customize/class-wp-customize-color-control.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/inc/customizer.php
r56526 r60478 76 76 'primary_color_hue', 77 77 array( 78 'label' => __( 'Custom Color', 'twentynineteen' ), 78 79 'description' => __( 'Apply a custom color for buttons, links, featured images, etc.', 'twentynineteen' ), 79 80 'section' => 'colors', -
trunk/src/wp-content/themes/twentynineteen/js/customize-controls.js
r46586 r60478 21 21 } 22 22 }; 23 23 // The control-specific label is redundant because, visually, this control is part of the Color Scheme control. 24 control.container.find( '.customize-control-title:first' ).addClass( 'screen-reader-text' ); 24 25 visibility(); 25 26 setting.bind( visibility ); -
trunk/src/wp-content/themes/twentyseventeen/assets/js/customize-controls.js
r46586 r60478 19 19 } 20 20 }; 21 21 // The control-specific label is redundant because, visually, this control is part of the Color Scheme control. 22 control.container.find( '.customize-control-title:first' ).addClass( 'screen-reader-text' ); 22 23 visibility(); 23 24 setting.bind( visibility ); -
trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php
r56526 r60478 74 74 'colorscheme_hue', 75 75 array( 76 'label' => __( 'Hue', 'twentyseventeen' ), 76 77 'mode' => 'hue', 77 78 'section' => 'colors', -
trunk/src/wp-content/themes/twentytwenty/assets/js/customize.js
r52285 r60478 23 23 } ); 24 24 } 25 // The control-specific label is redundant because, visually, this control is part of the Color Scheme control. 26 control.container.find( '.customize-control-title:first' ).addClass( 'screen-reader-text' ); 25 27 } ); 26 28 } ); -
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
r56559 r60478 186 186 'section' => 'colors', 187 187 'settings' => 'accent_hue', 188 'label' => __( 'Custom Color', 'twentytwenty' ), 188 189 'description' => __( 'Apply a custom color for links, buttons, featured images.', 'twentytwenty' ), 189 190 'mode' => 'hue', -
trunk/src/wp-includes/customize/class-wp-customize-color-control.php
r47382 r60478 93 93 public function content_template() { 94 94 ?> 95 <# var defaultValue = '#RRGGBB', defaultValueAttr = '', 95 <# 96 var defaultValue = '#RRGGBB', 97 defaultValueAttr = '', 98 inputId = _.uniqueId( 'customize-color-control-input-' ), 96 99 isHueSlider = data.mode === 'hue'; 100 97 101 if ( data.defaultValue && _.isString( data.defaultValue ) && ! isHueSlider ) { 98 102 if ( '#' !== data.defaultValue.substring( 0, 1 ) ) { … … 102 106 } 103 107 defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically. 104 } #> 108 } 109 #> 105 110 <# if ( data.label ) { #> 106 111 <span class="customize-control-title">{{{ data.label }}}</span> … … 110 115 <# } #> 111 116 <div class="customize-control-content"> 112 <label ><span class="screen-reader-text">{{{ data.label }}}</span>117 <label for="{{ inputId }}"><span class="screen-reader-text">{{{ data.label }}}</span></label> 113 118 <# if ( isHueSlider ) { #> 114 <input class="color-picker-hue" type="text" data-type="hue" />119 <input id="{{ inputId }}" class="color-picker-hue" type="number" min="1" max="359" data-type="hue" /> 115 120 <# } else { #> 116 <input class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} />121 <input id="{{ inputId }}" class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} /> 117 122 <# } #> 118 </label>119 123 </div> 120 124 <?php
Note: See TracChangeset for help on using the changeset viewer.