Skip to content

fix(datepicker): replace Sass imports with uses #6747

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

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

zachpreston6089
Copy link

@zachpreston6089 zachpreston6089 commented May 23, 2025

Our Angular project uses this library, and after upgrading to Angular v19, Sass is reporting deprecation warnings when we run the project. The issue is that Angular v19 uses [email protected], which deprecates any @import statements. The fix is to just replace all @import '...'; with @use '...' as *; in .scss files. Fortunately, there are only 3 instances of this in the codebase.

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@valorkin valorkin requested a review from Copilot May 26, 2025 15:04
Copy link

@Copilot 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 updates Sass file imports to use the new @use syntax to resolve deprecation warnings from [email protected] in Angular v19.

  • Replaced @import statements with @use in mixins.scss
  • Updated bs-datepicker.scss to use @use for both variables and mixins

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/datepicker/utils/scss/mixins.scss Replaced the @import for 'variables' with @use 'variables' as *.
src/datepicker/bs-datepicker.scss Replaced @import for 'utils/scss/variables' and 'utils/scss/mixins' with their corresponding @use statements

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