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/_variables.scss

    r59185 r59656  
     1@use "sass:color";
     2
    13// assign default value to all undefined variables
    24
     
    3840$menu-current-background: $menu-highlight-background !default;
    3941
    40 $menu-submenu-text: mix( $base-color, $text-color, 30% ) !default;
     42$menu-submenu-text: color.mix( $base-color, $text-color, 30% ) !default;
    4143$menu-submenu-background: color.adjust($base-color, $lightness: -7%) !default;
    4244$menu-submenu-background-alt: color.adjust(color.adjust($menu-background, $lightness: 7%), $saturation: -7%) !default;
     
    6062$adminbar-recovery-exit-text: $menu-bubble-text !default;
    6163$adminbar-recovery-exit-background: $menu-bubble-background !default;
    62 $adminbar-recovery-exit-background-alt: mix(black, $adminbar-recovery-exit-background, 10%) !default;
     64$adminbar-recovery-exit-background-alt: color.mix(black, $adminbar-recovery-exit-background, 10%) !default;
    6365
    64 $menu-customizer-text: mix( $base-color, $text-color, 40% ) !default;
     66$menu-customizer-text: color.mix( $base-color, $text-color, 40% ) !default;
    6567
    6668// Dashboard Colors
Note: See TracChangeset for help on using the changeset viewer.