Permalink
Browse files

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
  • Loading branch information...
ZHollingshead committed Apr 17, 2017
1 parent 3e5cbd7 commit ad5d9adbb328289bf59086bf2ce6073066e4ce40
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/input-info/ux-input-info-theme.css
@@ -9,9 +9,14 @@ styles.inputinfo {
styles.inputinfo>.error-text {
flex-grow: 1;
}
+ styles.inputinfo>.hint-text:first-child,
+ styles.inputinfo>.error-text:first-child {
+ display: block;
+ }
- styles.inputinfo>.error-text+.hint-text {
- display:none;
+ styles.inputinfo>.hint-text,
+ styles.inputinfo>.error-text {
+ display: none;
}
styles.inputinfo>.counter {

0 comments on commit ad5d9ad

Please sign in to comment.