components
components copied to clipboard
docs-bug(Theming): Reading hues from palettes
Documentation Feedback
The documentation in the chapter Reading hues from palettes suggests to use strings as the hue's number identifier:
background: mat.get-color-from-palette($my-palette, '500');
It seems to only work with number input though:
background: mat.get-color-from-palette($my-palette, 500);
Affected documentation page
https://material.angular.io/guide/theming#reading-hues-from-palettes