components icon indicating copy to clipboard operation
components copied to clipboard

docs-bug(Theming): Reading hues from palettes

Open Lepmim opened this issue 3 years ago • 0 comments

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

Lepmim avatar Sep 26 '22 14:09 Lepmim