Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit d71935c

Browse files
yavanostacopybara-github
authored andcommitted
feat(textfield): add support for several new tokens
PiperOrigin-RevId: 479246386
1 parent d9cf98e commit d71935c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

packages/mdc-textfield/_filled-text-field-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ $_light-theme: (
101101
input-text-color: null,
102102
input-text-font: null,
103103
input-text-line-height: null,
104+
input-text-placeholder-color: null,
105+
input-text-prefix-color: null,
104106
input-text-size: null,
107+
input-text-suffix-color: null,
105108
input-text-tracking: null,
106109
input-text-type: null,
107110
input-text-weight: null,

packages/mdc-textfield/_mixins.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,10 @@ $_density-config: map.merge(
803803
$rtl-reflexive: false,
804804
$query: feature-targeting.all()
805805
) {
806-
@if meta.type-of($radius) == 'list' and list.length($radius) > 2 {
806+
@if (meta.type-of($radius) == 'list') and
807+
(list.length($radius) > 2) and
808+
(list.nth($radius, 3) != 0 or list.nth($radius, 4) != 0)
809+
{
807810
@error "mdc-textfield: Invalid radius #{$radius}. Only top-left and top-right corners may be customized.";
808811
}
809812

packages/mdc-textfield/_outlined-text-field-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ $_light-theme: (
9292
input-text-color: null,
9393
input-text-font: null,
9494
input-text-line-height: null,
95+
input-text-placeholder-color: null,
96+
input-text-prefix-color: null,
9597
input-text-size: null,
98+
input-text-suffix-color: null,
9699
input-text-tracking: null,
97100
input-text-type: null,
98101
input-text-weight: null,

packages/mdc-textfield/_text-field-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ $_light-theme: (
110110
input-text-color: null,
111111
input-text-font: null,
112112
input-text-line-height: null,
113+
input-text-placeholder-color: null,
114+
input-text-prefix-color: null,
113115
input-text-size: null,
116+
input-text-suffix-color: null,
114117
input-text-tracking: null,
115118
input-text-type: null,
116119
input-text-weight: null,

0 commit comments

Comments
 (0)