Is this a regression?
The previous version in which this bug was not present was
20.0.6
Description
After upgrading to Angular Material 20.1, I noticed that the menus have a transparent background (no background color set). When checking the reason, I found out that the CSS variable is not applied.
I'm using a theme based on the M2 theme, and I'm not very familiar with themes. But maybe a hint what might have changed here could help me to find out the reason.
Reproduction
Since its a payed theme I cannot paste the whole code here but I could try to create a minimal repro if issue isn't obvious. M2 theming is quite customized by the author so there might probably be many reasons.
Expected Behavior
No breaking change with 20.1 (since none were listed).
Actual Behavior
E.g. all dropdows (menu, select) lost their background color. Guess there might be more if I check for undefined variables.
Environment
Angular CLI: 20.1.0
Node: 22.16.0
Package Manager: npm 10.9.2
OS: win32 x64
Angular: 20.1.0
... animations, build, cdk, cli, common, compiler, compiler-cli
... core, forms, material, material-luxon-adapter
... platform-browser, platform-browser-dynamic, router
... service-worker
Package Version
@angular-devkit/architect 0.2001.0 (cli-only)
@angular-devkit/core 20.1.0 (cli-only)
@angular-devkit/schematics 20.1.0 (cli-only)
@schematics/angular 20.1.0 (cli-only)
rxjs 7.8.2
typescript 5.8.3
zone.js 0.15.1
Is this a regression?
The previous version in which this bug was not present was
20.0.6
Description
After upgrading to Angular Material 20.1, I noticed that the menus have a transparent background (no background color set). When checking the reason, I found out that the CSS variable is not applied.
I'm using a theme based on the M2 theme, and I'm not very familiar with themes. But maybe a hint what might have changed here could help me to find out the reason.
Reproduction
Since its a payed theme I cannot paste the whole code here but I could try to create a minimal repro if issue isn't obvious. M2 theming is quite customized by the author so there might probably be many reasons.
Expected Behavior
No breaking change with 20.1 (since none were listed).
Actual Behavior
E.g. all dropdows (menu, select) lost their background color. Guess there might be more if I check for undefined variables.
Environment
Angular CLI: 20.1.0
Node: 22.16.0
Package Manager: npm 10.9.2
OS: win32 x64
Angular: 20.1.0
... animations, build, cdk, cli, common, compiler, compiler-cli
... core, forms, material, material-luxon-adapter
... platform-browser, platform-browser-dynamic, router
... service-worker
Package Version
@angular-devkit/architect 0.2001.0 (cli-only)
@angular-devkit/core 20.1.0 (cli-only)
@angular-devkit/schematics 20.1.0 (cli-only)
@schematics/angular 20.1.0 (cli-only)
rxjs 7.8.2
typescript 5.8.3
zone.js 0.15.1