-
Notifications
You must be signed in to change notification settings - Fork 4
Fix scss deprecation warnings #155
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: upgrade-stencil-to-v4
Are you sure you want to change the base?
Fix scss deprecation warnings #155
Conversation
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.
Pull request overview
This PR addresses SCSS deprecation warnings by migrating from @import to @use directives and updating division operations to use math.div() instead of the deprecated slash-as-division syntax.
- Replaced all
@importstatements with@usefor SCSS modules - Updated function and mixin calls to use namespace prefixes (e.g.,
functions.pxToRem(),mixins.visualize-keyboard-focus()) - Replaced slash division with
math.div()in thepxToRem()function
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/style/typography.scss | Migrated to @use syntax with namespaced function/mixin calls |
| src/style/shadows.scss | Migrated to @use syntax with namespaced function calls |
| src/style/loading.scss | Added functions import and namespaced function calls |
| src/style/global-layout-rules.scss | Updated variable references to use namespace prefix, but missing functions import |
| src/style/functions.scss | Added sass:math import and replaced slash division with math.div() |
| src/style/colors.scss | Migrated to @use syntax with namespaced mixin calls |
| src/global/kompendium.scss | Converted @import to @use for SCSS modules |
| src/components/taglist/taglist.scss | Converted @import to @use |
| src/components/search/search.scss | Migrated to @use syntax with namespaced function/mixin calls |
| src/components/proplist/proplist.scss | Converted @import to @use |
| src/components/playground/playground.scss | Migrated to @use syntax with namespaced function/mixin/variable calls |
| src/components/navigation/navigation.scss | Migrated to @use syntax with namespaced function/mixin/variable calls |
| src/components/markdown/markdown.scss | Converted @import to @use |
| src/components/darkmode-switch/darkmode-switch.scss | Migrated to @use syntax with namespaced function/mixin calls |
| src/components/component/component.scss | Converted @import to @use |
| src/components/code/code.scss | Migrated to @use syntax with namespaced function/mixin calls, kept @import for external CSS |
| src/components/app/app.scss | Migrated to @use syntax with namespaced function/variable calls |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… built-in functions
29b059d to
0f03964
Compare
See: https://sass-lang.com/documentation/breaking-changes/slash-div/
See: https://sass-lang.com/documentation/breaking-changes/import/
Testing
The changes here does not affect the build output in any way, it just updates some instances of code using deprecated APIs, thereby removing the deprecation warnings.