Make WordPress Core


Ignore:
Timestamp:
01/16/2025 09:03:12 PM (5 months ago)
Author:
desrosj
Message:

Administration: Modernize admin color scheme SASS files.

This updates the admin color scheme .sass files to address some deprecated notices caused by upstream changes.

  • string and colors are no longer globally available functions.
  • @import is deprecated in favor of @use.

There are still a few notices that are output, however this will require an update to the grunt-sass package to resolve.

Props MattyRob.
Fixes #62323.

File:
1 edited

Legend:

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

    r59419 r59656  
    11@use "sass:color";
    22
    3 $scheme-name: "modern";
    4 $base-color: #1e1e1e;
    53$highlight-color: #3858e9;
    6 $menu-submenu-focus-text: #7b90ff;
    7 $notification-color: $highlight-color;
    84
    9 $link: $highlight-color;
    10 $link-focus: color.adjust($highlight-color, $lightness: -10%);
     5@use "../_admin.scss" with (
     6    $scheme-name: "modern",
     7    $base-color: #1e1e1e,
     8    $highlight-color: #3858e9,
     9    $menu-submenu-focus-text: #7b90ff,
     10    $notification-color: $highlight-color,
    1111
    12 $custom-welcome-panel: "false";
     12    $link: $highlight-color,
     13    $link-focus: color.adjust($highlight-color, $lightness: -10%),
    1314
    14 @import "../_admin.scss";
     15    $custom-welcome-panel: "false"
     16);
Note: See TracChangeset for help on using the changeset viewer.