[wp-trac] [WordPress Trac] #62142: Sass Deprecation warnings during build process.
WordPress Trac
noreply at wordpress.org
Tue Oct 1 01:56:34 UTC 2024
#62142: Sass Deprecation warnings during build process.
------------------------------+-------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.7
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: css |
------------------------------+-------------------------
Sass has updated it's colour functions and they are showing deprecation
warnings (ie nothing fatal) during the build process.
Various sass files will need to be updated in WordPress-Develop to resolve
these.
1. Run `nvm use; npm i`
2. Run `npm run grunt clean:qunit; npm run build:dev`
3. Observe the deprecation warnings
An example follows but there are several more:
{{{
Deprecation Warning: lighten() is deprecated. Suggestions:
color.scale($color, $lightness: 15.9375%)
color.adjust($color, $lightness: 7%)
More info: https://sass-lang.com/d/color-functions
╷
58 │ $adminbar-input-background: lighten( $menu-background, 7% ) !default;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src/wp-admin/css/colors/_variables.scss 58:29 @import
src/wp-admin/css/colors/_admin.scss 2:9 @import
src/wp-admin/css/colors/blue/colors.scss 14:9 root stylesheet
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62142>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list