Make WordPress Core

Changeset 46769


Ignore:
Timestamp:
11/24/2019 11:03:05 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js

    r46571 r46769  
    3939        maxSaturation = 100,
    4040        minLightness = 30,
    41         maxLighness = 80,
     41        maxLightness = 80,
    4242        stepSaturation = 2,
    4343        stepLightness = 2,
     
    8787    // We're using `for` loops here because they perform marginally better than other loops.
    8888    for ( s = minSaturation; s <= maxSaturation; s += stepSaturation ) {
    89         for ( l = minLightness; l <= maxLighness; l += stepLightness ) {
     89        for ( l = minLightness; l <= maxLightness; l += stepLightness ) {
    9090            pushColor( s, l );
    9191        }
     
    9797    } );
    9898
    99     // If we have AAA-compliant colors, alpways prefer them.
     99    // If we have AAA-compliant colors, always prefer them.
    100100    if ( aaa.length ) {
    101101        this.accentColorsArray = aaa;
Note: See TracChangeset for help on using the changeset viewer.