Make WordPress Core

Changeset 46277


Ignore:
Timestamp:
09/23/2019 08:53:02 PM (7 years ago)
Author:
desrosj
Message:

Bundled Themes: Fix failing tests for Twenty Twenty.

Follow up of [46271].

See #48110.

Location:
trunk/src/wp-content/themes/twentytwenty/assets/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js

    r46271 r46277  
    4646                                        h: self.accentHue,
    4747                                        s: s,
    48                                         l: l,
     48                                        l: l
    4949                                } ),
    5050                                item;
     
    5353                                color: colorObj,
    5454                                contrastBackground: colorObj.getDistanceLuminosityFrom( self.bgColorObj ),
    55                                 contrastText: colorObj.getDistanceLuminosityFrom( self.textColorObj ),
     55                                contrastText: colorObj.getDistanceLuminosityFrom( self.textColorObj )
    5656                        };
    5757
     
    134134 * @return {Object} - this
    135135 */
    136 function twentyTwentyColor( backgroundColor, accentHue ) {
     136function twentyTwentyColor( backgroundColor, accentHue ) { // jshint ignore:line
    137137        var color = new _twentyTwentyColor( backgroundColor, accentHue );
    138138        color.setAccentColorsArray();
  • trunk/src/wp-content/themes/twentytwenty/assets/js/customize-controls.js

    r46271 r46277  
    6565                                text: colors.getTextColor(),
    6666                                accent: colors.getAccentColor().toCSS(),
    67                                 background: backgroundColor,
     67                                background: backgroundColor
    6868                        };
    6969
     
    7272                                h: colors.bgColorObj.h(),
    7373                                s: colors.bgColorObj.s() * 0.3922,
    74                                 l: colors.isDark ? colors.bgColorObj.l() + 9 : colors.bgColorObj.l() - 9,
     74                                l: colors.isDark ? colors.bgColorObj.l() + 9 : colors.bgColorObj.l() - 9
    7575                        } ).toCSS();
    7676
     
    7979                                h: colors.bgColorObj.h(),
    8080                                s: colors.bgColorObj.s() / 2,
    81                                 l: ( colors.textColorObj.l() * 0.57 ) + ( colors.bgColorObj.l() * 0.43 ),
     81                                l: ( colors.textColorObj.l() * 0.57 ) + ( colors.bgColorObj.l() * 0.43 )
    8282                        } ).toCSS();
    8383                }
  • trunk/src/wp-content/themes/twentytwenty/assets/js/index.js

    r46271 r46277  
    143143                                width: '100%',
    144144                                top: getAdminBarHeight( true ),
    145                                 left: 0,
     145                                left: 0
    146146                        };
    147147                }
     
    206206                        modal.classList.remove( 'active' );
    207207                }
    208         },
     208        }
    209209
    210210}; // twentytwenty.coverModals
     
    238238                        }
    239239                } );
    240         },
     240        }
    241241
    242242}; // twentytwenty.focusManagement
     
    286286                        video.style.height = ( video.dataset.origheight * ratio ) + 'px';
    287287                } );
    288         },
     288        }
    289289
    290290}; // twentytwenty.instrinsicRatioVideos
     
    379379                        } );
    380380                }
    381         },
     381        }
    382382
    383383}; // twentytwenty.smoothScroll
     
    405405                        } );
    406406                }
    407         },
     407        }
    408408}; // twentytwenty.modalMenu
    409409
     
    566566                        }
    567567                } );
    568         },
     568        }
    569569
    570570}; // twentytwenty.toggles
Note: See TracChangeset for help on using the changeset viewer.