Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(theming): There is no way to read density scale from theme #30236

Open
1 task done
shhdharmen opened this issue Dec 26, 2024 · 0 comments
Open
1 task done

bug(theming): There is no way to read density scale from theme #30236

shhdharmen opened this issue Dec 26, 2024 · 0 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@shhdharmen
Copy link

shhdharmen commented Dec 26, 2024

Is this a regression?

  • Yes, this behavior used to work in the previous version

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

  • Angular: 19
  • CDK/Material: 19
  • Browser(s): Edge
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows
@shhdharmen shhdharmen added the needs triage This issue needs to be triaged by the team label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant