Skip to content

Commit ad5d9ad

Browse files
authored
style(input-info): change error display
hides all hint-text and error-text except the first child. resolves an issue where multiple error messages can display at once
1 parent 3e5cbd7 commit ad5d9ad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/input-info/ux-input-info-theme.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ styles.inputinfo {
99
styles.inputinfo>.error-text {
1010
flex-grow: 1;
1111
}
12+
styles.inputinfo>.hint-text:first-child,
13+
styles.inputinfo>.error-text:first-child {
14+
display: block;
15+
}
1216

13-
styles.inputinfo>.error-text+.hint-text {
14-
display:none;
17+
styles.inputinfo>.hint-text,
18+
styles.inputinfo>.error-text {
19+
display: none;
1520
}
1621

1722
styles.inputinfo>.counter {

0 commit comments

Comments
 (0)