-
Notifications
You must be signed in to change notification settings - Fork 12
Wave 3: fix Sass deprecation warnings (component/style fixes) #419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devin/1782947720-angular20-core-upgrade
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @import "./app/shared/scss/themes"; | ||
| @use "./app/shared/scss/themes"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: In Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| html { | ||
| height: 100%; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Info: Sass
darken()tocolor.adjust()conversion on an rgba colorThe conversion from
darken($theme-amoledblack-text-color, 33%)tocolor.adjust($theme-amoledblack-text-color, $lightness: -33%)atsrc/app/shared/scss/_themes.scss:235is an exact behavioral equivalence per Sass documentation. However, the input color isrgba(255, 255, 255, 0.75)(defined atsrc/app/shared/scss/_theme_variables.scss:35), which is white at 75% opacity. Reducing lightness by 33 absolute percentage points (from 100% to 67%) produces a medium-gray at 75% opacity. The Sass team recommendscolor.scale()for perceptually smoother adjustments — this would produce a different (darker) result. Since this PR is a mechanical migration preserving existing behavior,color.adjustis the correct choice, but a future improvement could considercolor.scale()for better perceptual consistency.Was this helpful? React with 👍 or 👎 to provide feedback.