components icon indicating copy to clipboard operation
components copied to clipboard

bug(migration): Broken Angular Material 20 CSS Variables Migration

Open nw1n opened this issue 1 year ago • 1 comments

Is this a regression?

  • [ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When updating to Angular Material 20 the migration of the renamed design tokens (CSS variables) doesn't work consistently, sometimes the CSS variables only get renamed once per files.

Reproduction

Not reproducible in StackBlitz, it relies on v20 update migration.

Expected Behavior

I would expect for all md CSS variables of the same name to receive the same migration.

Actual Behavior

Some md css variables get renamed, but some css variables with the same name don't get renamed.

Environment

Angular CLI: 20.0.0 Node: 22.14.0 Package Manager: npm 11.4.0 OS: darwin arm64

Angular: 20.0.0 ... animations, build, cli, common, compiler, compiler-cli, core ... forms, language-service, platform-browser ... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1902.11 @angular-devkit/core 20.0.0 @angular-devkit/schematics 19.2.11 @angular/cdk 20.0.1 @angular/material 20.0.1 @schematics/angular 20.0.0 ng-packagr 20.0.0 rxjs 7.8.1 typescript 5.8.3 zone.js 0.15.0

Image

nw1n avatar Jun 02 '25 14:06 nw1n

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.