Skip to content

Commit a823ced

Browse files
committed
fix(multiple): rename hardcoded tokens that were renamed
1 parent 5e45a75 commit a823ced

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/material/button-toggle/button-toggle.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $_standard-tokens: (
5858
border: solid 1px token-utils.slot(divider-color);
5959

6060
.mat-pseudo-checkbox {
61-
--mat-minimal-pseudo-checkbox-selected-checkmark-color: #{
61+
--mat-pseudo-checkbox-minimal-selected-checkmark-color: #{
6262
token-utils.slot(selected-state-text-color)};
6363
}
6464
}
@@ -94,7 +94,7 @@ $_standard-tokens: (
9494
font-weight: token-utils.slot(label-text-weight);
9595
letter-spacing: token-utils.slot(label-text-tracking);
9696

97-
--mat-minimal-pseudo-checkbox-selected-checkmark-color: #{
97+
--mat-pseudo-checkbox-minimal-selected-checkmark-color: #{
9898
token-utils.slot(selected-state-text-color)};
9999

100100
&.cdk-keyboard-focused .mat-button-toggle-focus-overlay {
@@ -167,7 +167,7 @@ $_standard-tokens: (
167167
@include token-utils.use-tokens($_legacy-tokens...) {
168168
color: token-utils.slot(disabled-state-text-color);
169169
background-color: token-utils.slot(disabled-state-background-color);
170-
--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #{
170+
--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: #{
171171
token-utils.slot(disabled-state-text-color)};
172172

173173
&.mat-button-toggle-checked {
@@ -216,7 +216,7 @@ $_standard-tokens: (
216216
background-color: token-utils.slot(disabled-state-background-color);
217217

218218
.mat-pseudo-checkbox {
219-
--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #{
219+
--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: #{
220220
token-utils.slot(disabled-selected-state-text-color)};
221221
}
222222

src/material/core/option/option.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $_side-padding: 16px;
5252
}
5353

5454
.mat-pseudo-checkbox {
55-
--mat-minimal-pseudo-checkbox-selected-checkmark-color: #{
55+
--mat-pseudo-checkbox-minimal-selected-checkmark-color: #{
5656
token-utils.slot(selected-state-label-text-color)};
5757
}
5858
}

src/material/datepicker/calendar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $token-slots: m2-datepicker.get-token-slots();
5656
@include token-utils.use-tokens($token-prefix, $token-slots) {
5757
font-size: token-utils.slot(calendar-period-button-text-size);
5858
font-weight: token-utils.slot(calendar-period-button-text-weight);
59-
--mat-text-button-label-text-color: #{token-utils.slot(calendar-period-button-text-color)};
59+
--mat-button-text-label-text-color: #{token-utils.slot(calendar-period-button-text-color)};
6060
}
6161
}
6262

src/material/progress-spinner/progress-spinner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ const BASE_STROKE_WIDTH = 10;
8484
'[class.mdc-circular-progress--indeterminate]': 'mode === "indeterminate"',
8585
'[style.width.px]': 'diameter',
8686
'[style.height.px]': 'diameter',
87-
'[style.--mat-circular-progress-size]': 'diameter + "px"',
88-
'[style.--mat-circular-progress-active-indicator-width]': 'diameter + "px"',
87+
'[style.--mat-progress-spinner-size]': 'diameter + "px"',
88+
'[style.--mat-progress-spinner-active-indicator-width]': 'diameter + "px"',
8989
'[attr.aria-valuemin]': '0',
9090
'[attr.aria-valuemax]': '100',
9191
'[attr.aria-valuenow]': 'mode === "determinate" ? value : null',

src/material/slide-toggle/_slide-toggle-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
& {
5353
// TODO(andrewjs): Remove this once all tokens are migrated to
5454
// mat internally.
55-
--mdc-switch-disabled-label-text-color: #{inspection.get-theme-color(
55+
--mdc-slide-toggle-disabled-label-text-color: #{inspection.get-theme-color(
5656
$theme,
5757
foreground,
5858
disabled-text
5959
)};
6060
// TODO(wagnermaciel): Use our token system to define this css variable.
61-
--mat-switch-disabled-label-text-color: #{inspection.get-theme-color(
61+
--mat-slide-toggle-disabled-label-text-color: #{inspection.get-theme-color(
6262
$theme,
6363
foreground,
6464
disabled-text
@@ -67,7 +67,7 @@
6767

6868
.mat-mdc-slide-toggle {
6969
// TODO(wagnermaciel): Use our token system to define this css variable.
70-
--mat-switch-label-text-color: #{inspection.get-theme-color(
70+
--mat-slide-toggle-label-text-color: #{inspection.get-theme-color(
7171
$theme,
7272
foreground,
7373
text

src/material/slide-toggle/slide-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,6 @@ $token-slots: m2-slide-toggle.get-token-slots();
578578

579579
// TODO(wagnermaciel): Use our custom token system to emit this css rule.
580580
.mdc-switch--disabled + label {
581-
color: var(--mat-switch-disabled-label-text-color);
581+
color: var(--mat-slide-toggle-disabled-label-text-color);
582582
}
583583
}

0 commit comments

Comments
 (0)