bug(theming): There is no way to read density scale from theme #30236
Labels
area: theming
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
18
Description
In Angular Material 18, developers could use Angular Material's theme's density scale, so that their custom components aligns with other Angular Material components.
In v18, developers could use
mat.get-theme-density($theme);
to get the scale. Link to docs.In v19, it's not clear how to get density scale from theme.
Reproduction
Not needed.
Expected Behavior
Developers should be able to read density scale in Angular Material 19.
Actual Behavior
Developers are not able to read density scale in Angular Material 19.
Environment
The text was updated successfully, but these errors were encountered: