|
34 | 34 |
|
35 | 35 | @return map.merge($color-tokens, ( |
36 | 36 | // MDC has a token for the enabled placeholder, but not for the disabled one. |
37 | | - form-field-disabled-input-text-placeholder-color: |
38 | | - inspection.get-theme-color($theme, foreground, base, 0.38), |
| 37 | + form-field-disabled-input-text-placeholder-color: $disabled, |
39 | 38 | form-field-state-layer-color: inspection.get-theme-color($theme, system, on-surface), |
40 | 39 | form-field-error-text-color: inspection.get-theme-color($theme, warn), |
41 | 40 |
|
|
63 | 62 | form-field-error-focus-trailing-icon-color: unset, |
64 | 63 | form-field-error-hover-trailing-icon-color: unset, |
65 | 64 | form-field-error-trailing-icon-color: unset, |
66 | | - form-field-enabled-select-arrow-color: |
67 | | - inspection.get-theme-color($theme, foreground, base, 0.54), |
| 65 | + form-field-enabled-select-arrow-color: map.get($system, on-surface-variant), |
68 | 66 | form-field-disabled-select-arrow-color: $disabled, |
69 | 67 | form-field-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity), |
70 | 68 | form-field-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity), |
71 | 69 | form-field-filled-container-color: _variable-safe-mix($on-surface, $surface, 4%), |
72 | 70 | form-field-filled-disabled-container-color: _variable-safe-mix($on-surface, $surface, 2%), |
73 | | - form-field-filled-label-text-color: inspection.get-theme-color($theme, foreground, base, 0.6), |
74 | | - form-field-filled-hover-label-text-color: |
75 | | - inspection.get-theme-color($theme, foreground, base, 0.6), |
| 71 | + form-field-filled-label-text-color: map.get($system, on-surface-variant), |
| 72 | + form-field-filled-hover-label-text-color: map.get($system, on-surface-variant), |
76 | 73 | form-field-filled-disabled-label-text-color: $disabled, |
77 | | - form-field-filled-input-text-color: |
78 | | - inspection.get-theme-color($theme, system, on-surface), |
| 74 | + form-field-filled-input-text-color: map.get($system, on-surface), |
79 | 75 | form-field-filled-disabled-input-text-color: $disabled, |
80 | | - form-field-filled-input-text-placeholder-color: |
81 | | - inspection.get-theme-color($theme, foreground, base, 0.6), |
| 76 | + form-field-filled-input-text-placeholder-color: map.get($system, on-surface-variant), |
82 | 77 | form-field-filled-error-hover-label-text-color: $warn-color, |
83 | 78 | form-field-filled-error-focus-label-text-color: $warn-color, |
84 | 79 | form-field-filled-error-label-text-color: $warn-color, |
85 | 80 | form-field-filled-error-caret-color: $warn-color, |
86 | | - form-field-filled-active-indicator-color: |
87 | | - inspection.get-theme-color($theme, foreground, base, 0.42), |
| 81 | + form-field-filled-active-indicator-color: map.get($system, on-surface-variant), |
88 | 82 | form-field-filled-disabled-active-indicator-color: |
89 | 83 | inspection.get-theme-color($theme, foreground, base, 0.06), |
90 | 84 | form-field-filled-hover-active-indicator-color: |
91 | 85 | inspection.get-theme-color($theme, system, on-surface), |
92 | 86 | form-field-filled-error-active-indicator-color: $warn-color, |
93 | 87 | form-field-filled-error-focus-active-indicator-color: $warn-color, |
94 | 88 | form-field-filled-error-hover-active-indicator-color: $warn-color, |
95 | | - form-field-outlined-label-text-color: |
96 | | - inspection.get-theme-color($theme, foreground, base, 0.6), |
97 | | - form-field-outlined-hover-label-text-color: |
98 | | - inspection.get-theme-color($theme, foreground, base, 0.6), |
| 89 | + form-field-outlined-label-text-color: map.get($system, on-surface-variant), |
| 90 | + form-field-outlined-hover-label-text-color: map.get($system, on-surface), |
99 | 91 | form-field-outlined-disabled-label-text-color: $disabled, |
100 | 92 | form-field-outlined-input-text-color: |
101 | 93 | inspection.get-theme-color($theme, system, on-surface), |
102 | 94 | form-field-outlined-disabled-input-text-color: $disabled, |
103 | | - form-field-outlined-input-text-placeholder-color: |
104 | | - inspection.get-theme-color($theme, foreground, base, 0.6), |
| 95 | + form-field-outlined-input-text-placeholder-color: map.get($system, on-surface-variant), |
105 | 96 | form-field-outlined-error-caret-color: $warn-color, |
106 | 97 | form-field-outlined-error-focus-label-text-color: $warn-color, |
107 | 98 | form-field-outlined-error-label-text-color: $warn-color, |
108 | 99 | form-field-outlined-error-hover-label-text-color: $warn-color, |
109 | | - form-field-outlined-outline-color: inspection.get-theme-color($theme, foreground, base, 0.38), |
| 100 | + form-field-outlined-outline-color: map.get($system, outline), |
110 | 101 | form-field-outlined-disabled-outline-color: |
111 | | - inspection.get-theme-color($theme, foreground, base, 0.06), |
| 102 | + m3-utils.color-with-opacity(map.get($system, on-surface), 12%), |
112 | 103 | form-field-outlined-hover-outline-color: |
113 | 104 | inspection.get-theme-color($theme, system, on-surface), |
114 | 105 | form-field-outlined-error-focus-outline-color: $warn-color, |
|
0 commit comments