Skip to content

Commit 3b21957

Browse files
lunarfusionmlogsdon18
authored andcommitted
fix(textfield): icon color defaults
1 parent 8e16a5b commit 3b21957

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

components/textfield/index.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,23 @@ governing permissions and limitations under the License.
288288
top: 0;
289289
bottom: 0;
290290
margin: auto;
291+
color: var(--highcontrast-textfield-text-color-default, var(--mod-textfield-text-color-default, var(--spectrum-textfield-text-color-default)));
292+
293+
.spectrum-Textfield.is-disabled & {
294+
color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-textfield-text-color-disabled)));
295+
}
296+
297+
.spectrum-Textfield--quiet & {
298+
color: var(--highcontrast-textfield-text-color-default, var(--mod-textfield-text-color-default, var(--spectrum-textfield-text-color-default)));
299+
}
300+
301+
.spectrum-Textfield--quiet.is-disabled & {
302+
color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-textfield-text-color-disabled)));
303+
}
304+
305+
.spectrum-Textfield.is-readOnly & {
306+
color: var(--highcontrast-textfield-text-color-readonly, var(--mod-textfield-text-color-readonly, var(--spectrum-textfield-text-color-readonly)));
307+
}
291308
}
292309

293310
/********* Child Component - Label *********/

0 commit comments

Comments
 (0)