diff --git a/src/wp-admin/css/color-picker.css b/src/wp-admin/css/color-picker.css index baa1d94c83..30dec299be 100644 --- a/src/wp-admin/css/color-picker.css +++ b/src/wp-admin/css/color-picker.css @@ -133,4 +133,11 @@ box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); -} \ No newline at end of file +} + +@media screen and ( max-width: 782px ) { + .wp-picker-container input[type="text"].wp-color-picker { + margin-right: 6px; + padding: 3px 5px; + } +} diff --git a/src/wp-includes/customize/class-wp-customize-color-control.php b/src/wp-includes/customize/class-wp-customize-color-control.php index 7f6a9b5a84..775a63d7a8 100644 --- a/src/wp-includes/customize/class-wp-customize-color-control.php +++ b/src/wp-includes/customize/class-wp-customize-color-control.php @@ -92,7 +92,7 @@ class WP_Customize_Color_Control extends WP_Customize_Control { */ public function content_template() { ?> - <# var defaultValue = '', + <# var defaultValue = '#RRGGBB', defaultValueAttr = '', isHueSlider = data.mode === 'hue'; if ( data.defaultValue && ! isHueSlider ) { @@ -101,7 +101,7 @@ class WP_Customize_Color_Control extends WP_Customize_Control { } else { defaultValue = data.defaultValue; } - defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically. + defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically. } #>