docs(theming): fix incorrect M2 API names in theming-your-components guide#32834
Open
yogeshwaran-c wants to merge 1 commit intoangular:mainfrom
Open
docs(theming): fix incorrect M2 API names in theming-your-components guide#32834yogeshwaran-c wants to merge 1 commit intoangular:mainfrom
yogeshwaran-c wants to merge 1 commit intoangular:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Documentation fix
What is the current behavior?
The M2 Support section of the
theming-your-componentsguide uses incorrectSass API names:
mat.define-paletteinstead ofmat.m2-define-palettemat.$indigo-paletteinstead ofmat.$m2-indigo-paletteThese names do not exist in the flat
@angular/materialnamespace. Since v19,M2 APIs are re-exported with the
m2-prefix(
@forward './core/m2' as m2-*in_index.scss), so the correct names aremat.m2-define-paletteandmat.$m2-indigo-palette.What is the new behavior?
Updates the code example in the M2 Support section to use the correct prefixed
API names that match the current
@angular/materialpublic API.Additional context
The
material-2.mdguide already uses the correctm2-prefixed namesthroughout. This change aligns the
theming-your-components.mdguide with thatconvention.