Skip to content

Commit fc2b162

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

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/material/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
@forward './chips/chips-theme' as chips-* show chips-theme, chips-color, chips-typography;
8989
@forward './datepicker/datepicker-theme' as datepicker-* show datepicker-theme, datepicker-color,
9090
datepicker-typography, datepicker-date-range-colors;
91-
@forward './legacy-dialog/dialog-theme' as dialog-* show dialog-theme, dialog-color, dialog-typography;
91+
@forward './legacy-dialog/dialog-theme' as legacy-dialog-* show legacy-dialog-theme, legacy-dialog-color, legacy-dialog-typography;
9292
@forward './divider/divider-theme' as divider-* show divider-theme, divider-color,
9393
divider-typography;
9494
@forward './expansion/expansion-theme' as expansion-* show expansion-theme, expansion-color,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@forward 'dialog-theme' hide color, theme, typography;
2-
@forward 'dialog-theme' as mat-dialog-* hide mat-dialog-density;
2+
@forward 'dialog-theme' as mat-legacy-dialog-* hide mat-legacy-dialog-density;

src/material/legacy-dialog/_dialog-theme.import.scss

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

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

src/material/schematics/ng-generate/mdc-migration/rules/components/dialog/dialog-styles.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('dialog styles', () => {
2323
`
2424
@use '@angular/material' as mat;
2525
$theme: ();
26-
@include mat.dialog-theme($theme);
26+
@include mat.legacy-dialog-theme($theme);
2727
`,
2828
`
2929
@use '@angular/material' as mat;
@@ -56,8 +56,8 @@ describe('dialog styles', () => {
5656
@use '@angular/material' as mat;
5757
$light-theme: ();
5858
$dark-theme: ();
59-
@include mat.dialog-theme($light-theme);
60-
@include mat.dialog-theme($dark-theme);
59+
@include mat.legacy-dialog-theme($light-theme);
60+
@include mat.legacy-dialog-theme($dark-theme);
6161
`,
6262
`
6363
@use '@angular/material' as mat;
@@ -78,7 +78,7 @@ describe('dialog styles', () => {
7878
$theme: ();
7979
8080
81-
@include mat.dialog-theme($theme);
81+
@include mat.legacy-dialog-theme($theme);
8282
8383
8484
`,

0 commit comments

Comments
 (0)