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

feat(material/core): move Material 3 support into stable #28913

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

crisbeto
Copy link
Member

Moves all of the Material 3 theming APIs into stable since they'll be considered stable APIs in v18.

@crisbeto crisbeto added the target: major This PR is targeted for the next major release label Apr 19, 2024
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Apr 19, 2024
@crisbeto crisbeto force-pushed the m3-stable branch 2 times, most recently from f5f6261 to 9bdca25 Compare April 19, 2024 09:04
// Hue maps created from https://m3.material.io/theme-builder#/custom (using
// #984061 as source color). Not using predefined M3 palettes since some neutral
// hues are slightly off from generated theme.
const testM3ThemePalette = new Map([
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to move this palette into a separate function, because something in the test was mutating it causing random failures. Also has the nice side-effect of moving it to the bottom of the file.

@@ -410,20 +403,19 @@ We recommend _not_ relying on the `color="primary"`, `color="accent"`, or `color
that are offered by a number of Angular Material components for M2 themes. However, if you want to
quickly update to M3 and are willing to accept the extra CSS generated for these variants, you can
enable backwards compatibility styles that restore the behavior of this API. Call the
`color-variants-back-compat` mixin from `@angular/material-experimental` with the M3 theme you want
`color-variants-backwards-compatibilityt` mixin from `@angular/material` with the M3 theme you want
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theres a small typo in this file, it should be color-variants-backwards-compatibility. Theres an extra t at the end

Moves all of the Material 3 theming APIs into stable since they'll be considered stable APIs in v18.
@crisbeto crisbeto self-assigned this Apr 19, 2024
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Apr 19, 2024
@crisbeto crisbeto merged commit d679024 into angular:main Apr 19, 2024
24 of 26 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants