Skip to content

Commit 9c53b7a

Browse files
authored
refactor(material/schematics): add project name for theme styles & backwards compatibility (angular#29169)
adds project name to commented theme styles & backwards compatibility mixins on generating custom theme
1 parent 04d3b63 commit 9c53b7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/schematics/ng-add/theming/create-custom-theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ $${name}-theme: mat.define-theme((
4040
4141
// Comment out the line below if you want to use the pre-defined typography utility classes.
4242
// For more information: https://material.angular.io/guide/typography#using-typography-styles-in-your-application.
43-
// @include mat.typography-hierarchy($theme);
43+
// @include mat.typography-hierarchy($${name}-theme);
4444
4545
// Comment out the line below if you want to use the deprecated \`color\` inputs.
46-
// @include mat.color-variants-backwards-compatibility($theme);
46+
// @include mat.color-variants-backwards-compatibility($${name}-theme);
4747
`;
4848
}

0 commit comments

Comments
 (0)