-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
bug(material/slide-toggle): Sass deprecation warning since v18.2.0 #29591
Comments
Same observation with M3 custom theme. |
What version of Sass are you running? |
I'm not overriding the Sass version, I'm using the one from |
Fixes a ton of warnings that showed up in the latest version of Sass as a result of https://sass-lang.com/documentation/breaking-changes/mixed-decls/. Fixes angular#29591.
Fixes a ton of warnings that showed up in the latest version of Sass as a result of https://sass-lang.com/documentation/breaking-changes/mixed-decls/. Fixes angular#29591.
I also encountered the same problem after upgrading to Angular 18.2.0 `▲ [WARNING] Deprecation [plugin angular-sass]
Sass's behavior for declarations that appear after nested More info: https://sass-lang.com/d/mixed-decls The plugin "angular-sass" was triggered by this import
|
The same here Sass's behavior for declarations that appear after nested More info: https://sass-lang.com/d/mixed-decls The plugin "angular-sass" was triggered by this import
|
Same problem here after upgrading to Angular 18.2.0 ``
Sass's behavior for declarations that appear after nested More info: https://sass-lang.com/d/mixed-decls The plugin "angular-sass" was triggered by this import
`` |
Fixes a ton of warnings that showed up in the latest version of Sass as a result of https://sass-lang.com/documentation/breaking-changes/mixed-decls/. Fixes angular#29591.
In 18.2 the Sass version was updated to 1.77.7 which causes a lot of deprecation warnings for Material users (see angular/components#29591). Resolving these warnings can break some apps so we want to delay it until v19. These changes downgrade to a version that doesn't check for the deprecation.
Following up here: fixing these deprecation warnings will change the order in which some CSS will be generated which can break some users so we want to delay them until v19. To address the issue we'll:
|
Fixes a ton of warnings that showed up in the latest version of Sass as a result of https://sass-lang.com/documentation/breaking-changes/mixed-decls/. BREAKING CHANGES: * In order for Material to be compatible with [recent changes in Sass](https://sass-lang.com/documentation/breaking-changes/mixed-decls/) and upcoming changes in the CSS standard, tokens are now emitted in-place, rather the being hoisted to the top of the selector. As a result, some token overrides might not apply anymore. This is relevant primarily for the cases like `@include mat.button-theme($theme); --mat-button-color: red;`. It can be resolved by wrapping the overrides with `& {}`, for example `@include mat.button-theme($theme); & { --mat-button-color: red; }`. Fixes angular#29591.
In 18.2 the Sass version was updated to 1.77.7 which causes a lot of deprecation warnings for Material users (see angular/components#29591). Resolving these warnings can break some apps so we want to delay it until v19. These changes downgrade to a version that doesn't check for the deprecation.
Fixes a ton of warnings that showed up in the latest version of Sass as a result of https://sass-lang.com/documentation/breaking-changes/mixed-decls/. BREAKING CHANGE: * In order for Material to be compatible with [recent changes in Sass](https://sass-lang.com/documentation/breaking-changes/mixed-decls/) and upcoming changes in the CSS standard, tokens are now emitted in-place, rather the being hoisted to the top of the selector. As a result, some token overrides might not apply anymore. This is relevant primarily for the cases like `@include mat.button-theme($theme); --mat-button-color: red;`. It can be resolved by wrapping the overrides with `& {}`, for example `@include mat.button-theme($theme); & { --mat-button-color: red; }`. Fixes angular#29591.
…29596) Fixes a ton of warnings that showed up in the latest version of Sass as a result of https://sass-lang.com/documentation/breaking-changes/mixed-decls/. BREAKING CHANGE: * In order for Material to be compatible with [recent changes in Sass](https://sass-lang.com/documentation/breaking-changes/mixed-decls/) and upcoming changes in the CSS standard, tokens are now emitted in-place, rather the being hoisted to the top of the selector. As a result, some token overrides might not apply anymore. This is relevant primarily for the cases like `@include mat.button-theme($theme); --mat-button-color: red;`. It can be resolved by wrapping the overrides with `& {}`, for example `@include mat.button-theme($theme); & { --mat-button-color: red; }`. Fixes #29591.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is this a regression?
The previous version in which this bug was not present was
18.1.x
Description
After updating to Angular 18.2.0 in an app using Angular Material with a custom theme, the following Sass warning is produced:
The warning originates from the Slide Toggle theme:
components/src/material/slide-toggle/_slide-toggle-theme.scss
Line 46 in 4f2bc4d
Reproduction
StackBlitz link: https://stackblitz.com/edit/tq6jmr?file=src%2Fstyles.scss
Steps to reproduce:
Expected Behavior
No Sass warning produced
Actual Behavior
Sass warning is produced
Environment
Angular CLI: 18.2.0
Node: 18.20.3
Package Manager: yarn 1.22.19
OS: linux x64
Angular: 18.2.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, material-experimental
... material-moment-adapter, platform-browser
... platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1802.0
@angular-devkit/build-angular 18.2.0
@angular-devkit/core 18.2.0
@angular-devkit/schematics 18.2.0
@schematics/angular 18.2.0
rxjs 7.4.0
typescript 5.4.5
zone.js 0.14.6
The text was updated successfully, but these errors were encountered: