Skip to content
Permalink
Browse files

Bundled Theme: Twenty Nineteen: Use human-friendly color names.

For better accessibility, the Primary and Secondary theme colors have now more understandable names.
Changes the names "Primary" and "Secondary" to "Blue" and "Dark Blue". Fallbacks to the `hex` color codes when the theme is set to use a custom Primary color.

Props kjellr, aduth, audrasjb.
Fixes #46698.


git-svn-id: https://develop.svn.wordpress.org/trunk@45964 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
afercia committed Sep 4, 2019
1 parent 8aab635 commit a1fd37e4130a4c631df89daa40d65987d6806568
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/wp-content/themes/twentynineteen/functions.php
@@ -143,12 +143,12 @@ function twentynineteen_setup() {
'editor-color-palette',
array(
array(
'name' => __( 'Primary', 'twentynineteen' ),
'name' => 'default' === get_theme_mod( 'primary_color' ) ? __( 'Blue', 'twentynineteen' ) : null,
'slug' => 'primary',
'color' => twentynineteen_hsl_hex( 'default' === get_theme_mod( 'primary_color' ) ? 199 : get_theme_mod( 'primary_color_hue', 199 ), 100, 33 ),
),
array(
'name' => __( 'Secondary', 'twentynineteen' ),
'name' => 'default' === get_theme_mod( 'primary_color' ) ? __( 'Dark Blue', 'twentynineteen' ) : null,
'slug' => 'secondary',
'color' => twentynineteen_hsl_hex( 'default' === get_theme_mod( 'primary_color' ) ? 199 : get_theme_mod( 'primary_color_hue', 199 ), 100, 23 ),
),

0 comments on commit a1fd37e

Please sign in to comment.
You can’t perform that action at this time.