Skip to content

Commit 6899c1c

Browse files
committed
3. Rename Sass mixins in src/material/legacy-<component>
Perform the following steps to complete the rename and fix all references: 1. Global find & replace `@include mat.<component>` with `@include mat.<legacy-component>` 2. In `src/material/legacy-<component>/_<component>-legacy-index.scss` and `src/material/legacy-<component>/_<component>-theme.import.scss`, find & replace `mat-<component>` with `mat-legacy-<component>` 3. In `src/_index.scss`, find the line that says `@forward './legacy-<component>/<component>-theme' as`. Change every instance of `<component>` after the word `as` to `<legacy-component>` 4. Run `yarn format`
1 parent b5c1a69 commit 6899c1c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/material/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
@forward './button/button-theme' as button-* show button-theme, button-color, button-typography;
7070
@forward './button-toggle/button-toggle-theme' as button-toggle-* show button-toggle-theme,
7171
button-toggle-color, button-toggle-typography;
72-
@forward './legacy-card/card-theme' as card-* show card-theme, card-color, card-typography;
72+
@forward './legacy-card/card-theme' as legacy-card-* show legacy-card-theme, legacy-card-color, legacy-card-typography;
7373
@forward './checkbox/checkbox-theme' as checkbox-* show checkbox-theme, checkbox-color,
7474
checkbox-typography;
7575
@forward './chips/chips-theme' as chips-* show chips-theme, chips-color, chips-typography;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@forward 'card-theme' hide color, theme, typography;
2-
@forward 'card-theme' as mat-card-* hide mat-card-density;
2+
@forward 'card-theme' as mat-legacy-card-* hide mat-legacy-card-density;

src/material/legacy-card/_card-theme.import.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@forward '../core/style/private.import';
33
@forward '../core/typography/typography-utils.import';
44
@forward 'card-theme' hide color, theme, typography;
5-
@forward 'card-theme' as mat-card-* hide mat-card-density;
5+
@forward 'card-theme' as mat-legacy-card-* hide mat-legacy-card-density;
66

77
@import '../core/theming/palette';
88
@import '../core/theming/theming';

0 commit comments

Comments
 (0)