Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 14dc578

Browse files
committed
style(ngRequired): mark when invalid
1 parent 4245e42 commit 14dc578

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/select.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
/* Select2 theme */
88

9+
/* Mark invalid Select2 */
10+
.ng-dirty.ng-invalid > a.select2-choice {
11+
border-color: #D44950;
12+
}
913

1014
/* Selectize theme */
1115

@@ -19,6 +23,11 @@
1923
width: 100%;
2024
}
2125

26+
/* Mark invalid Selectize */
27+
.ng-dirty.ng-invalid > div.selectize-input {
28+
border-color: #D44950;
29+
}
30+
2231

2332
/* Bootstrap theme */
2433

@@ -61,3 +70,8 @@
6170
.ui-select-search.ng-hide-add {
6271
display: none !important;
6372
}
73+
74+
/* Mark invalid Bootstrap */
75+
.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
76+
border-color: #D44950;
77+
}

0 commit comments

Comments
 (0)