Skip to content

Conversation

@adrianschmidt
Copy link
Collaborator

@adrianschmidt adrianschmidt commented Nov 29, 2025

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.

@adrianschmidt adrianschmidt changed the base branch from main to upgrade-stencil-to-v4 November 29, 2025 12:20
@adrianschmidt adrianschmidt reopened this Nov 29, 2025
@adrianschmidt adrianschmidt marked this pull request as draft November 29, 2025 12:21
Copy link

Copilot AI left a 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 @import statements with @use for 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 the pxToRem() 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.

@adrianschmidt adrianschmidt force-pushed the fix-scss-deprecation-warnings branch from 29b059d to 0f03964 Compare December 1, 2025 11:27
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.

2 participants