Twenty Twenty: Fix typos in a variable name and inline comment in assets/js/color-calculations.js.

Props tanvirul.
Merges [46747] to the 5.3 branch.
Fixes #48704.
Built from https://develop.svn.wordpress.org/branches/5.3@46769


git-svn-id: http://core.svn.wordpress.org/branches/5.3@46569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-11-24 11:05:02 +00:00
parent 27e67093f7
commit 7df949e31e
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() {
minSaturation = 65,
maxSaturation = 100,
minLightness = 30,
maxLighness = 80,
maxLightness = 80,
stepSaturation = 2,
stepLightness = 2,
pushColor = function() {
@ -86,7 +86,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() {
// We're using `for` loops here because they perform marginally better than other loops.
for ( s = minSaturation; s <= maxSaturation; s += stepSaturation ) {
for ( l = minLightness; l <= maxLighness; l += stepLightness ) {
for ( l = minLightness; l <= maxLightness; l += stepLightness ) {
pushColor( s, l );
}
}
@ -96,7 +96,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() {
return 7 <= color.contrastBackground;
} );
// If we have AAA-compliant colors, alpways prefer them.
// If we have AAA-compliant colors, always prefer them.
if ( aaa.length ) {
this.accentColorsArray = aaa;
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3.1-alpha-46768';
$wp_version = '5.3.1-alpha-46769';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.