-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Documentation Feedback
Since the release of 20.1.0, Material 2 components no longer use the background
and foreground
palettes for neutral colours (such as default-colour button backgrounds). However, these are still referenced in the Material 2 Theming guide - both in terms of the palette tokens being listed out, and in terms of being able to read the palette values via mat.get-theme-color
.
In my opinion the fact that these are documented strengthens the argument that the move to _mat-system
is a breaking change that should have been pushed to the next major release. Regardless, there is now a bug with the documentation because it references these outdated tokens that no longer do what the documentation claims.
(More discussion in #31630)
Affected documentation page
https://material.angular.dev/guide/material-2-theming#reading-values-from-a-theme