Skip to content

Replace deprecated Sass lighten() in community.scss - #3723

Open
TAMOUSS Radouane (radouane-tamouss) wants to merge 1 commit into
microsoft:v2from
radouane-tamouss:fix/sass-lighten-community-3566
Open

TAMOUSS Radouane (radouane-tamouss) wants to merge 1 commit into
microsoft:v2from
radouane-tamouss:fix/sass-lighten-community-3566

Conversation

@radouane-tamouss

Copy link
Copy Markdown

Fixes #3566

Problem
community.scss uses the deprecated global lighten(black, 30%) function, which emits Sass color-functions deprecation warnings and is removed in Dart Sass 3.0.0.

Fix

  • Import sass:color and replace lighten(black, 30%) with color.adjust(black, $lightness: 30%) in packages/typescriptlang-org/src/templates/pages/css/community.scss.

Test

  • Compiled community.scss with Dart Sass and verified rgb(30%, 30%, 30%) output with no color-functions deprecation warnings.

This branch has not been deployed

No deployments
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.

CRITICAL: Deprecated Sass lighten() function causing build warnings in community.scss

1 participant