Make WordPress Core


Ignore:
Timestamp:
10/06/2024 11:35:49 PM (7 months ago)
Author:
peterwilsoncc
Message:

Tests/Build Tools: Update SCSS files to use new color functions.

Replaces deprecated color functions with their updated equivalents, see the deprecation documentation.

This results in four changes in the built files, hsl colors with a negative lightness value are replaced with the keyword black. These changes are harmless as they have no effect on the rendered colors.

Props aslamdoctor, veryard.
Fixes #62142.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/colors/light/colors.scss

    r55574 r59185  
     1@use "sass:color";
     2
    13$scheme-name: "light";
    24$base-color: #e5e5e5;
     
    2022
    2123$dashboard-accent-1: $highlight-color;
    22 $dashboard-accent-2: desaturate( lighten( $highlight-color, 7% ), 15% );
     24$dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%);
    2325$dashboard-icon-background: $text-color;
    2426
Note: See TracChangeset for help on using the changeset viewer.