You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These should be allowed to be included in the color palettes even if they are not used by Angular Material.
However when I try to include those slots in a theme for Angular Material, the sass complier errors with "Expected $config.primary to be a valid M3 palette". The error is generated by
@melroy89 the theming system is "strange" and "confusing" to put it mildly.
The "primary" theme you provide on mat.theme actually has primary, secondary, neutral, neutral-variant, and error all included.
The "tertiary" theme you provide on mat.theme actually has tertiary, secondary, neutral, neutral-variant, and error all included.
The differences are how the primary and tertiary color palettes are exposed compared to the other palettes when passed into mat.theme
Is this a regression?
The previous version in which this bug was not present was
No response
Description
The Material Theme Builder generates slots 5 and 15 in the color palettes.
These should be allowed to be included in the color palettes even if they are not used by Angular Material.
However when I try to include those slots in a theme for Angular Material, the sass complier errors with "Expected $config.primary to be a valid M3 palette". The error is generated by
components/src/material/core/theming/_config-validation.scss
Line 38 in c4337d6
components/src/material/core/theming/_config-validation.scss
Line 44 in c4337d6
The validation checks should only fail on required (i.e. used by Angular Material) slots.
Reproduction
StackBlitz link:
Steps to reproduce:
ng generate @angular/material:theme-color
5: #1e0037
.ng build
Expected Behavior
The build completes without error.
Actual Behavior
The build failed with error.
Environment
The text was updated successfully, but these errors were encountered: