Skip to content

Commit 3e4923c

Browse files
committed
refactor: repeat mdc tokens along with mat rename
1 parent 6249895 commit 3e4923c

File tree

3 files changed

+403
-2
lines changed

3 files changed

+403
-2
lines changed
Lines changed: 378 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,378 @@
1+
// List of tokens that were previously prefixed with `mdc-` and should be
2+
// redefined with the `mdc` prefix while internal clients are migrated.
3+
$mdc-tokens: (
4+
'--mat-checkbox-disabled-selected-checkmark-color',
5+
'--mat-checkbox-disabled-selected-icon-color',
6+
'--mat-checkbox-disabled-unselected-icon-color',
7+
'--mat-checkbox-selected-checkmark-color',
8+
'--mat-checkbox-selected-focus-icon-color',
9+
'--mat-checkbox-selected-focus-state-layer-color',
10+
'--mat-checkbox-selected-focus-state-layer-opacity',
11+
'--mat-checkbox-selected-hover-icon-color',
12+
'--mat-checkbox-selected-hover-state-layer-color',
13+
'--mat-checkbox-selected-hover-state-layer-opacity',
14+
'--mat-checkbox-selected-icon-color',
15+
'--mat-checkbox-selected-pressed-icon-color',
16+
'--mat-checkbox-selected-pressed-state-layer-color',
17+
'--mat-checkbox-selected-pressed-state-layer-opacity',
18+
'--mat-checkbox-state-layer-size',
19+
'--mat-checkbox-unselected-focus-icon-color',
20+
'--mat-checkbox-unselected-focus-state-layer-color',
21+
'--mat-checkbox-unselected-focus-state-layer-opacity',
22+
'--mat-checkbox-unselected-hover-icon-color',
23+
'--mat-checkbox-unselected-hover-state-layer-color',
24+
'--mat-checkbox-unselected-hover-state-layer-opacity',
25+
'--mat-checkbox-unselected-icon-color',
26+
'--mat-checkbox-unselected-pressed-state-layer-color',
27+
'--mat-checkbox-unselected-pressed-state-layer-opacity',
28+
'--mat-chip-container-height',
29+
'--mat-chip-container-shape-radius',
30+
'--mat-chip-disabled-label-text-color',
31+
'--mat-chip-disabled-outline-color',
32+
'--mat-chip-elevated-container-color',
33+
'--mat-chip-elevated-disabled-container-color',
34+
'--mat-chip-elevated-selected-container-color',
35+
'--mat-chip-flat-disabled-selected-container-color',
36+
'--mat-chip-flat-selected-outline-width',
37+
'--mat-chip-focus-outline-color',
38+
'--mat-chip-focus-state-layer-color',
39+
'--mat-chip-focus-state-layer-opacity',
40+
'--mat-chip-hover-state-layer-color',
41+
'--mat-chip-hover-state-layer-opacity',
42+
'--mat-chip-label-text-color',
43+
'--mat-chip-label-text-font',
44+
'--mat-chip-label-text-line-height',
45+
'--mat-chip-label-text-size',
46+
'--mat-chip-label-text-tracking',
47+
'--mat-chip-label-text-weight',
48+
'--mat-chip-outline-color',
49+
'--mat-chip-outline-width',
50+
'--mat-chip-selected-focus-state-layer-color',
51+
'--mat-chip-selected-focus-state-layer-opacity',
52+
'--mat-chip-selected-hover-state-layer-color',
53+
'--mat-chip-selected-hover-state-layer-opacity',
54+
'--mat-chip-selected-label-text-color',
55+
'--mat-chip-with-avatar-avatar-shape-radius',
56+
'--mat-chip-with-avatar-avatar-size',
57+
'--mat-chip-with-avatar-disabled-avatar-opacity',
58+
'--mat-chip-with-icon-disabled-icon-color',
59+
'--mat-chip-with-icon-disabled-icon-opacity',
60+
'--mat-chip-with-icon-icon-color',
61+
'--mat-chip-with-icon-icon-size',
62+
'--mat-chip-with-icon-selected-icon-color',
63+
'--mat-chip-with-trailing-icon-disabled-trailing-icon-color',
64+
'--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity',
65+
'--mat-chip-with-trailing-icon-trailing-icon-color',
66+
'--mat-circular-progress-active-indicator-color',
67+
'--mat-circular-progress-active-indicator-width',
68+
'--mat-circular-progress-size',
69+
'--mat-dialog-container-color',
70+
'--mat-dialog-container-shape',
71+
'--mat-dialog-subhead-color',
72+
'--mat-dialog-subhead-font',
73+
'--mat-dialog-subhead-line-height',
74+
'--mat-dialog-subhead-size',
75+
'--mat-dialog-subhead-tracking',
76+
'--mat-dialog-subhead-weight',
77+
'--mat-dialog-supporting-text-color',
78+
'--mat-dialog-supporting-text-font',
79+
'--mat-dialog-supporting-text-line-height',
80+
'--mat-dialog-supporting-text-size',
81+
'--mat-dialog-supporting-text-tracking',
82+
'--mat-dialog-supporting-text-weight',
83+
'--mat-elevated-card-container-color',
84+
'--mat-elevated-card-container-elevation',
85+
'--mat-elevated-card-container-shape',
86+
'--mat-fab-container-color',
87+
'--mat-fab-container-elevation-shadow',
88+
'--mat-fab-container-shape',
89+
'--mat-fab-focus-container-elevation-shadow',
90+
'--mat-fab-hover-container-elevation-shadow',
91+
'--mat-fab-pressed-container-elevation-shadow',
92+
'--mat-fab-small-container-color',
93+
'--mat-fab-small-container-elevation-shadow',
94+
'--mat-fab-small-container-shape',
95+
'--mat-fab-small-focus-container-elevation-shadow',
96+
'--mat-fab-small-hover-container-elevation-shadow',
97+
'--mat-fab-small-pressed-container-elevation-shadow',
98+
'--mat-filled-button-container-color',
99+
'--mat-filled-button-container-height',
100+
'--mat-filled-button-container-shape',
101+
'--mat-filled-button-disabled-container-color',
102+
'--mat-filled-button-disabled-label-text-color',
103+
'--mat-filled-button-label-text-color',
104+
'--mat-filled-button-label-text-font',
105+
'--mat-filled-button-label-text-size',
106+
'--mat-filled-button-label-text-tracking',
107+
'--mat-filled-button-label-text-transform',
108+
'--mat-filled-button-label-text-weight',
109+
'--mat-filled-text-field-active-indicator-color',
110+
'--mat-filled-text-field-active-indicator-height',
111+
'--mat-filled-text-field-caret-color',
112+
'--mat-filled-text-field-container-color',
113+
'--mat-filled-text-field-container-shape',
114+
'--mat-filled-text-field-disabled-active-indicator-color',
115+
'--mat-filled-text-field-disabled-container-color',
116+
'--mat-filled-text-field-disabled-input-text-color',
117+
'--mat-filled-text-field-disabled-label-text-color',
118+
'--mat-filled-text-field-error-active-indicator-color',
119+
'--mat-filled-text-field-error-caret-color',
120+
'--mat-filled-text-field-error-focus-active-indicator-color',
121+
'--mat-filled-text-field-error-focus-label-text-color',
122+
'--mat-filled-text-field-error-hover-active-indicator-color',
123+
'--mat-filled-text-field-error-hover-label-text-color',
124+
'--mat-filled-text-field-error-label-text-color',
125+
'--mat-filled-text-field-focus-active-indicator-color',
126+
'--mat-filled-text-field-focus-active-indicator-height',
127+
'--mat-filled-text-field-focus-label-text-color',
128+
'--mat-filled-text-field-hover-active-indicator-color',
129+
'--mat-filled-text-field-hover-label-text-color',
130+
'--mat-filled-text-field-input-text-color',
131+
'--mat-filled-text-field-input-text-placeholder-color',
132+
'--mat-filled-text-field-label-text-color',
133+
'--mat-filled-text-field-label-text-font',
134+
'--mat-filled-text-field-label-text-size',
135+
'--mat-filled-text-field-label-text-tracking',
136+
'--mat-filled-text-field-label-text-weight',
137+
'--mat-icon-button-disabled-icon-color',
138+
'--mat-icon-button-icon-color',
139+
'--mat-icon-button-icon-size',
140+
'--mat-icon-button-state-layer-size',
141+
'--mat-icon-button-state-layer-size',
142+
'--mat-linear-progress-active-indicator-color',
143+
'--mat-linear-progress-active-indicator-height',
144+
'--mat-linear-progress-track-color',
145+
'--mat-linear-progress-track-height',
146+
'--mat-linear-progress-track-shape',
147+
'--mat-list-list-item-container-color',
148+
'--mat-list-list-item-container-shape',
149+
'--mat-list-list-item-disabled-label-text-color',
150+
'--mat-list-list-item-disabled-label-text-opacity',
151+
'--mat-list-list-item-disabled-leading-icon-color',
152+
'--mat-list-list-item-disabled-leading-icon-opacity',
153+
'--mat-list-list-item-disabled-state-layer-color',
154+
'--mat-list-list-item-disabled-state-layer-opacity',
155+
'--mat-list-list-item-disabled-trailing-icon-color',
156+
'--mat-list-list-item-disabled-trailing-icon-opacity',
157+
'--mat-list-list-item-focus-label-text-color',
158+
'--mat-list-list-item-focus-state-layer-color',
159+
'--mat-list-list-item-focus-state-layer-opacity',
160+
'--mat-list-list-item-hover-label-text-color',
161+
'--mat-list-list-item-hover-leading-icon-color',
162+
'--mat-list-list-item-hover-state-layer-color',
163+
'--mat-list-list-item-hover-state-layer-opacity',
164+
'--mat-list-list-item-hover-trailing-icon-color',
165+
'--mat-list-list-item-label-text-color',
166+
'--mat-list-list-item-label-text-font',
167+
'--mat-list-list-item-label-text-line-height',
168+
'--mat-list-list-item-label-text-size',
169+
'--mat-list-list-item-label-text-tracking',
170+
'--mat-list-list-item-label-text-weight',
171+
'--mat-list-list-item-leading-avatar-color',
172+
'--mat-list-list-item-leading-avatar-shape',
173+
'--mat-list-list-item-leading-avatar-size',
174+
'--mat-list-list-item-leading-icon-color',
175+
'--mat-list-list-item-leading-icon-size',
176+
'--mat-list-list-item-one-line-container-height',
177+
'--mat-list-list-item-selected-container-color',
178+
'--mat-list-list-item-selected-trailing-icon-color',
179+
'--mat-list-list-item-supporting-text-color',
180+
'--mat-list-list-item-supporting-text-font',
181+
'--mat-list-list-item-supporting-text-line-height',
182+
'--mat-list-list-item-supporting-text-size',
183+
'--mat-list-list-item-supporting-text-tracking',
184+
'--mat-list-list-item-supporting-text-weight',
185+
'--mat-list-list-item-three-line-container-height',
186+
'--mat-list-list-item-trailing-icon-color',
187+
'--mat-list-list-item-trailing-icon-size',
188+
'--mat-list-list-item-trailing-supporting-text-color',
189+
'--mat-list-list-item-trailing-supporting-text-font',
190+
'--mat-list-list-item-trailing-supporting-text-line-height',
191+
'--mat-list-list-item-trailing-supporting-text-size',
192+
'--mat-list-list-item-trailing-supporting-text-tracking',
193+
'--mat-list-list-item-trailing-supporting-text-weight',
194+
'--mat-list-list-item-two-line-container-height',
195+
'--mat-outlined-button-container-height',
196+
'--mat-outlined-button-container-shape',
197+
'--mat-outlined-button-disabled-label-text-color',
198+
'--mat-outlined-button-disabled-outline-color',
199+
'--mat-outlined-button-label-text-color',
200+
'--mat-outlined-button-label-text-font',
201+
'--mat-outlined-button-label-text-size',
202+
'--mat-outlined-button-label-text-tracking',
203+
'--mat-outlined-button-label-text-transform',
204+
'--mat-outlined-button-label-text-weight',
205+
'--mat-outlined-button-outline-color',
206+
'--mat-outlined-button-outline-width',
207+
'--mat-outlined-card-container-color',
208+
'--mat-outlined-card-container-elevation',
209+
'--mat-outlined-card-container-shape',
210+
'--mat-outlined-card-outline-color',
211+
'--mat-outlined-card-outline-width',
212+
'--mat-outlined-text-field-caret-color',
213+
'--mat-outlined-text-field-container-shape',
214+
'--mat-outlined-text-field-disabled-input-text-color',
215+
'--mat-outlined-text-field-disabled-label-text-color',
216+
'--mat-outlined-text-field-disabled-outline-color',
217+
'--mat-outlined-text-field-error-caret-color',
218+
'--mat-outlined-text-field-error-focus-label-text-color',
219+
'--mat-outlined-text-field-error-focus-outline-color',
220+
'--mat-outlined-text-field-error-hover-label-text-color',
221+
'--mat-outlined-text-field-error-hover-outline-color',
222+
'--mat-outlined-text-field-error-label-text-color',
223+
'--mat-outlined-text-field-error-outline-color',
224+
'--mat-outlined-text-field-focus-label-text-color',
225+
'--mat-outlined-text-field-focus-outline-color',
226+
'--mat-outlined-text-field-focus-outline-width',
227+
'--mat-outlined-text-field-hover-label-text-color',
228+
'--mat-outlined-text-field-hover-outline-color',
229+
'--mat-outlined-text-field-input-text-color',
230+
'--mat-outlined-text-field-input-text-placeholder-color',
231+
'--mat-outlined-text-field-label-text-color',
232+
'--mat-outlined-text-field-label-text-font',
233+
'--mat-outlined-text-field-label-text-size',
234+
'--mat-outlined-text-field-label-text-tracking',
235+
'--mat-outlined-text-field-label-text-weight',
236+
'--mat-outlined-text-field-outline-color',
237+
'--mat-outlined-text-field-outline-width',
238+
'--mat-plain-tooltip-container-color',
239+
'--mat-plain-tooltip-container-shape',
240+
'--mat-plain-tooltip-supporting-text-color',
241+
'--mat-plain-tooltip-supporting-text-font',
242+
'--mat-plain-tooltip-supporting-text-line-height',
243+
'--mat-plain-tooltip-supporting-text-size',
244+
'--mat-plain-tooltip-supporting-text-tracking',
245+
'--mat-plain-tooltip-supporting-text-weight',
246+
'--mat-protected-button-container-color',
247+
'--mat-protected-button-container-elevation-shadow',
248+
'--mat-protected-button-container-height',
249+
'--mat-protected-button-container-shape',
250+
'--mat-protected-button-disabled-container-color',
251+
'--mat-protected-button-disabled-container-elevation-shadow',
252+
'--mat-protected-button-disabled-label-text-color',
253+
'--mat-protected-button-focus-container-elevation-shadow',
254+
'--mat-protected-button-hover-container-elevation-shadow',
255+
'--mat-protected-button-label-text-color',
256+
'--mat-protected-button-label-text-font',
257+
'--mat-protected-button-label-text-size',
258+
'--mat-protected-button-label-text-tracking',
259+
'--mat-protected-button-label-text-transform',
260+
'--mat-protected-button-label-text-weight',
261+
'--mat-protected-button-pressed-container-elevation-shadow',
262+
'--mat-radio-disabled-selected-icon-color',
263+
'--mat-radio-disabled-selected-icon-opacity',
264+
'--mat-radio-disabled-unselected-icon-color',
265+
'--mat-radio-disabled-unselected-icon-opacity',
266+
'--mat-radio-selected-focus-icon-color',
267+
'--mat-radio-selected-hover-icon-color',
268+
'--mat-radio-selected-icon-color',
269+
'--mat-radio-selected-pressed-icon-color',
270+
'--mat-radio-state-layer-size',
271+
'--mat-radio-unselected-focus-icon-color',
272+
'--mat-radio-unselected-hover-icon-color',
273+
'--mat-radio-unselected-icon-color',
274+
'--mat-radio-unselected-pressed-icon-color',
275+
'--mat-secondary-navigation-tab-container-height',
276+
'--mat-slider-active-track-color',
277+
'--mat-slider-active-track-height',
278+
'--mat-slider-active-track-shape',
279+
'--mat-slider-disabled-active-track-color',
280+
'--mat-slider-disabled-handle-color',
281+
'--mat-slider-disabled-inactive-track-color',
282+
'--mat-slider-focus-handle-color',
283+
'--mat-slider-handle-color',
284+
'--mat-slider-handle-elevation',
285+
'--mat-slider-handle-height',
286+
'--mat-slider-handle-shape',
287+
'--mat-slider-handle-width',
288+
'--mat-slider-hover-handle-color',
289+
'--mat-slider-inactive-track-color',
290+
'--mat-slider-inactive-track-height',
291+
'--mat-slider-inactive-track-shape',
292+
'--mat-slider-label-container-color',
293+
'--mat-slider-label-label-text-color',
294+
'--mat-slider-label-label-text-font',
295+
'--mat-slider-label-label-text-line-height',
296+
'--mat-slider-label-label-text-size',
297+
'--mat-slider-label-label-text-tracking',
298+
'--mat-slider-label-label-text-weight',
299+
'--mat-slider-with-overlap-handle-outline-color',
300+
'--mat-slider-with-overlap-handle-outline-width',
301+
'--mat-slider-with-tick-marks-active-container-color',
302+
'--mat-slider-with-tick-marks-active-container-opacity',
303+
'--mat-slider-with-tick-marks-container-shape',
304+
'--mat-slider-with-tick-marks-container-size',
305+
'--mat-slider-with-tick-marks-disabled-container-color',
306+
'--mat-slider-with-tick-marks-inactive-container-color',
307+
'--mat-slider-with-tick-marks-inactive-container-opacity',
308+
'--mat-snackbar-container-color',
309+
'--mat-snackbar-container-shape',
310+
'--mat-snackbar-supporting-text-color',
311+
'--mat-snackbar-supporting-text-font',
312+
'--mat-snackbar-supporting-text-line-height',
313+
'--mat-snackbar-supporting-text-size',
314+
'--mat-snackbar-supporting-text-weight',
315+
'--mat-switch-disabled-handle-elevation-shadow',
316+
'--mat-switch-disabled-selected-handle-color',
317+
'--mat-switch-disabled-selected-icon-color',
318+
'--mat-switch-disabled-selected-icon-opacity',
319+
'--mat-switch-disabled-selected-track-color',
320+
'--mat-switch-disabled-track-opacity',
321+
'--mat-switch-disabled-unselected-handle-color',
322+
'--mat-switch-disabled-unselected-icon-color',
323+
'--mat-switch-disabled-unselected-icon-opacity',
324+
'--mat-switch-disabled-unselected-track-color',
325+
'--mat-switch-handle-elevation-shadow',
326+
'--mat-switch-handle-height',
327+
'--mat-switch-handle-shape',
328+
'--mat-switch-handle-surface-color',
329+
'--mat-switch-handle-width',
330+
'--mat-switch-selected-focus-handle-color',
331+
'--mat-switch-selected-focus-state-layer-color',
332+
'--mat-switch-selected-focus-state-layer-opacity',
333+
'--mat-switch-selected-focus-track-color',
334+
'--mat-switch-selected-handle-color',
335+
'--mat-switch-selected-hover-handle-color',
336+
'--mat-switch-selected-hover-state-layer-color',
337+
'--mat-switch-selected-hover-state-layer-opacity',
338+
'--mat-switch-selected-hover-track-color',
339+
'--mat-switch-selected-icon-color',
340+
'--mat-switch-selected-icon-size',
341+
'--mat-switch-selected-pressed-handle-color',
342+
'--mat-switch-selected-pressed-state-layer-color',
343+
'--mat-switch-selected-pressed-state-layer-opacity',
344+
'--mat-switch-selected-pressed-track-color',
345+
'--mat-switch-selected-track-color',
346+
'--mat-switch-state-layer-size',
347+
'--mat-switch-track-height',
348+
'--mat-switch-track-shape',
349+
'--mat-switch-track-width',
350+
'--mat-switch-unselected-focus-handle-color',
351+
'--mat-switch-unselected-focus-state-layer-color',
352+
'--mat-switch-unselected-focus-state-layer-opacity',
353+
'--mat-switch-unselected-focus-track-color',
354+
'--mat-switch-unselected-handle-color',
355+
'--mat-switch-unselected-hover-handle-color',
356+
'--mat-switch-unselected-hover-state-layer-color',
357+
'--mat-switch-unselected-hover-state-layer-opacity',
358+
'--mat-switch-unselected-hover-track-color',
359+
'--mat-switch-unselected-icon-color',
360+
'--mat-switch-unselected-icon-size',
361+
'--mat-switch-unselected-pressed-handle-color',
362+
'--mat-switch-unselected-pressed-state-layer-color',
363+
'--mat-switch-unselected-pressed-state-layer-opacity',
364+
'--mat-switch-unselected-pressed-track-color',
365+
'--mat-switch-unselected-track-color',
366+
'--mat-tab-indicator-active-indicator-color',
367+
'--mat-tab-indicator-active-indicator-height',
368+
'--mat-tab-indicator-active-indicator-shape',
369+
'--mat-text-button-container-height',
370+
'--mat-text-button-container-shape',
371+
'--mat-text-button-disabled-label-text-color',
372+
'--mat-text-button-label-text-color',
373+
'--mat-text-button-label-text-font',
374+
'--mat-text-button-label-text-size',
375+
'--mat-text-button-label-text-tracking',
376+
'--mat-text-button-label-text-transform',
377+
'--mat-text-button-label-text-weight'
378+
);

0 commit comments

Comments
 (0)