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

Commit 3e11d33

Browse files
AustPamsheehan
authored andcommitted
fix(textfield): Make bar respect invalid styling (#585)
1 parent e80fe7d commit 3e11d33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/mdc-textfield/mdc-textfield.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
201201

202202
.mdc-textfield--invalid {
203203
&:not(.mdc-textfield--focused) {
204-
&::after {
204+
&::after,
205+
&.mdc-textfield--upgraded::after {
205206
background-color: $mdc-textfield-error-on-light;
206207
}
207208

@@ -212,7 +213,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
212213

213214
@include mdc-theme-dark(".mdc-textfield", true) {
214215
&:not(.mdc-textfield--focused) {
215-
&::after {
216+
&::after,
217+
&.mdc-textfield--upgraded::after {
216218
background-color: $mdc-textfield-error-on-dark;
217219
}
218220

0 commit comments

Comments
 (0)