Open
Description
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
Don't know if it's intended behavior or not.
Scss generated by mat.define-dark-theme or mat.define-light-theme have duplicated keys/values/styles.
Notice the duplicated values for:
- primary
- accent
- warn
- is-dark
- foreground
- background
Reproduction
Steps to reproduce:
- Create new project
ng new
1.1 Choose SCSS as stylesheet - Add angular material
ng add @angular/material
2.1 For prebuild theme, choose custom option - In styles.scss file, add
@debug
$name-of-app-theme
Expected Behavior
Should exist only one definition for
- primary
- accent
- warn
- is-dark
- foreground
- background
Actual Behavior
Below I attached the result of @debug
. Take a look at primary color, for example and notice the value is repeated for no reason.
The only difference is the parenthesis before.
Environment
- Angular: 13.0.1
- CDK/Material: 13.0.0
- Operating System (e.g. Windows, macOS, Ubuntu): Windows