bug(material/core): Theme configuration checks should allow extra slots in color palettes #30780
Labels
area: ng-generate
Schematics that generate code in user projects
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P4
A relatively minor issue that is not relevant to core functions
Uh oh!
There was an error while loading. Please reload this page.
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: