Skip to content

fix: replace deprecated Sass lighten() with color.adjust() in community.scss#3558

Open
lavuchandu169 wants to merge 1 commit intomicrosoft:v2from
lavuchandu169:fix/sass-deprecation-warnings
Open

fix: replace deprecated Sass lighten() with color.adjust() in community.scss#3558
lavuchandu169 wants to merge 1 commit intomicrosoft:v2from
lavuchandu169:fix/sass-deprecation-warnings

Conversation

@lavuchandu169
Copy link
Copy Markdown

Problem

The community.scss file uses the deprecated Sass lighten() color
function which will be removed in Dart Sass 3.0.0:
' ' '
DEPRECATION WARNING [color-functions]: lighten() is deprecated
' ' '

Fix

  • Added @use "sass:color" module at the top of community.scss
  • Replaced lighten(black, 30%) with color.adjust(black, $lightness: 30%)

Testing

  • Verified community page renders correctly at /community
  • color-functions deprecation warning no longer appears in build output
  • No visual changes to the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant