Skip to content

docs-bug(M2 theming): M2 theming guide references defunct background and foreground palettes #31668

@benelliott

Description

@benelliott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis issue is related to documentationneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions