Skip to content

refactor: move m2 system values #31318

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

andrewseguin
Copy link
Contributor

Puts the M2 system map at the first level of the theme config with key _mat-system, instead of being nested into the color map. It will soon also contain more information than just color

Also fixes where theme files were using the inspection utils to get system colors, instead just use map functions.

Also, refactors the light/dark define functions to reduce duplication

@andrewseguin andrewseguin requested a review from a team as a code owner June 9, 2025 12:21
@andrewseguin andrewseguin requested review from crisbeto and mmalerba and removed request for a team June 9, 2025 12:21
@andrewseguin andrewseguin added the target: minor This PR is targeted for the next minor release label Jun 9, 2025
# Conflicts:
#	src/material/slider/_m2-slider.scss
@andrewseguin andrewseguin reopened this Jun 10, 2025
@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Jun 10, 2025
@andrewseguin andrewseguin merged commit 8d1860e into angular:main Jun 10, 2025
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants