Skip to content

Commit 1289310

Browse files
amysortommalerba
authored andcommitted
fix(material/schematics): improve sass comment adding logic
- Refactor the code to be more reusable - Mark comments with TODO(mdc-migration)
1 parent f231404 commit 1289310

39 files changed

+233
-200
lines changed

integration/mdc-migration/golden/src/app/components/autocomplete/autocomplete.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.mat-mdc-autocomplete { padding: 16px; }
22

3-
/* TODO: The following rule targets internal classes of autocomplete that may no longer apply for the MDC version. */
4-
3+
/* TODO(mdc-migration): The following rule targets internal classes of autocomplete that may no longer apply for the MDC version. */
54
::ng-deep .mat-autocomplete-panel {
65
background-color: lavenderblush;
76
}

integration/mdc-migration/golden/src/app/components/button/button.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
}
44

55

6-
/* TODO: The following rule targets internal classes of button that may no longer apply for the MDC version. */
7-
6+
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version. */
87
::ng-deep .mat-button-wrapper{ color: darkblue; }

integration/mdc-migration/golden/src/app/components/card/card.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
padding-left: 24px;
66
}
77

8-
/* TODO: The following rule targets internal classes of card that may no longer apply for the MDC version. */
9-
8+
/* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
109
.mat-card-flat {
1110
margin: 4px;
1211
}

integration/mdc-migration/golden/src/app/components/checkbox/checkbox.component.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
padding-right: 16px;
33
}
44

5-
/* TODO: The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
6-
5+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
76
::ng-deep .mat-checkbox-disabled .mat-checkbox-label {
87
color: slategray;
98
}
10-
/* TODO: The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
11-
9+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
1210
.mat-checkbox-label { font-size: 16px; }

integration/mdc-migration/golden/src/app/components/chips/chips.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.mat-mdc-chip {
22
background-color: lavender;
3-
/* TODO: The following rule targets internal classes of chips that may no longer apply for the MDC version. */
4-
3+
/* TODO(mdc-migration): The following rule targets internal classes of chips that may no longer apply for the MDC version. */
54
.mat-chip-avatar {
65
outline: 1px solid black;
76
}

integration/mdc-migration/golden/src/app/components/form-field/form-field.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
}
88

99

10-
/* TODO: The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
11-
10+
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
1211
.mat-mdc-form-field
1312
.mat-form-field-wrapper {
1413
padding: 16px;

integration/mdc-migration/golden/src/app/components/input/input.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
}
44

55

6-
/* TODO: The following rule targets internal classes of input that may no longer apply for the MDC version. */
7-
6+
/* TODO(mdc-migration): The following rule targets internal classes of input that may no longer apply for the MDC version. */
87
.mat-input-server {
98
color: red;
109
}

integration/mdc-migration/golden/src/app/components/list/list.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
color: darkblue;
55
}
66

7-
/* TODO: The following rule targets internal classes of list that may no longer apply for the MDC version. */
8-
7+
/* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */
98
.mat-list-item-content {
109
padding: 8px;
1110
}

integration/mdc-migration/golden/src/app/components/menu/menu.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
}
88

99

10-
/* TODO: The following rule targets internal classes of menu that may no longer apply for the MDC version. */
11-
10+
/* TODO(mdc-migration): The following rule targets internal classes of menu that may no longer apply for the MDC version. */
1211
.mat-mdc-menu-item .mat-menu-submenu-icon { padding: 12px; }

integration/mdc-migration/golden/src/app/components/paginator/paginator.component.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
justify-content: flex-start;
77
}
88

9-
/* TODO: The following rule targets internal classes of paginator that may no longer apply for the MDC version. */
10-
9+
/* TODO(mdc-migration): The following rule targets internal classes of paginator that may no longer apply for the MDC version. */
1110
.mat-paginator-increment {
1211
padding: 4px;
1312
}

0 commit comments

Comments
 (0)