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/midnight/colors.scss

    r59185 r59656  
    11@use "sass:color";
    22
    3 $scheme-name: "midnight";
    43$base-color: #363b3f;
    54$highlight-color: #e14d43;
    65$notification-color: #69a8bb;
    76
    8 $dashboard-accent-2: mix($base-color, $notification-color, 90%);
     7@use "../_admin.scss" with (
     8    $scheme-name: "midnight",
     9    $base-color: $base-color,
     10    $highlight-color: $highlight-color,
     11    $notification-color: $notification-color,
    912
    10 @import "../_admin.scss";
     13    $dashboard-accent-2: color.mix($base-color, $notification-color, 90%),
     14);
Note: See TracChangeset for help on using the changeset viewer.