components icon indicating copy to clipboard operation
components copied to clipboard

fix(material/theming): add validation for system-level token overrides

Open wagnermaciel opened this issue 1 year ago • 0 comments

Currently the system-level-colors and system-level-typography mixins do not have validation to ensure all tokens passed in by the user are valid tokens.

Add in validation for these mixins, similar to what is being done for https://github.com/angular/components/blob/main/src/material/core/tokens/_token-utils.scss#L238

Example of invalid usage that should throw an error:

@include mat.system-level-colors($theme, (
  foobar: blue,
));

wagnermaciel avatar Apr 24 '24 16:04 wagnermaciel