Skip to content

Commit eaf0c4e

Browse files
authored
fix(input): invalid helper text (#1525)
1 parent ae71e28 commit eaf0c4e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/components/input/themes/shared/input.common.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ $theme: $base;
5757
}
5858
/* stylelint-enable */
5959

60+
:host([invalid]) {
61+
::part(helper-text) {
62+
color: var-get($theme, 'error-secondary-color');
63+
}
64+
}
65+
6066
:host(:disabled),
6167
:host([disabled]) {
6268
[part~='input']::placeholder {

src/components/input/themes/shared/input.indigo.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ $transition-duration: .25s;
180180
background: var-get($theme, 'error-secondary-color');
181181
}
182182
}
183+
184+
::part(helper-text) {
185+
color: var-get($theme, 'helper-text-color');
186+
}
183187
}
184188

185189
:host([type='search']) {

0 commit comments

Comments
 (0)