Closed
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
We are getting error in below code -
@include mat.all-legacy-component-themes($theme);
$theme
contains custom color palettes configuration which used to work properly in v14 without any warnings.
After migrating angular v14 to v15rc, we are getting following error (adding only one error as other errors are similar but with different css var color) -
[build:demothemes] WARNING: var(--primary, #4bcd3e) is not a color. Falling back to "dark" tone.
[build:demothemes] node_modules\@material\theme\_theme-color.scss 67:5 tone()
node_modules\@material\theme\_theme-color.scss 86:14 contrast-tone()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 123:10 using-mdc-theme()
node_modules\@angular\material\button\_icon-button-theme.scss 13:3 color()
node_modules\@angular\material\button\_icon-button-theme.scss 68:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\button\_icon-button-theme.scss 62:3 theme()
node_modules\@angular\material\datepicker\_datepicker-legacy-compat.scss 7:5 legacy-button-compat-theme()
node_modules\@angular\material\legacy-button\_button-theme.scss 168:3 color()
node_modules\@angular\material\legacy-button\_button-theme.scss 214:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\legacy-button\_button-theme.scss 208:3 theme()
node_modules\@angular\material\legacy-core\theming\_all-theme.scss 45:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\legacy-core\theming\_all-theme.scss 43:3 all-legacy-component-themes()
libs\prebuilt-themes\default.scss 125:1 @use
libs\prebuilt-themes\default-css-vars.scss 5:1 @use
apps\ruf-app\src\app\custom-themes\default.scss 3:1 root stylesheet
Reproduction
Steps to reproduce:
1.
2.
Expected Behavior
NA
Actual Behavior
NA
Environment
Angular: 15.0.0-rc.4
CDK/Material: 15.0.0-rc.3
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows