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

Commit 521eaf4

Browse files
committed
Merge pull request #93 from angular-ui/style-ngrequired
style(ngRequired): mark when invalid
2 parents 6b76dda + 14dc578 commit 521eaf4

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
@@ -19,6 +19,10 @@
1919

2020
/* Select2 theme */
2121

22+
/* Mark invalid Select2 */
23+
.ng-dirty.ng-invalid > a.select2-choice {
24+
border-color: #D44950;
25+
}
2226

2327
/* Selectize theme */
2428

@@ -37,6 +41,11 @@
3741
width: 100%;
3842
}
3943

44+
/* Mark invalid Selectize */
45+
.ng-dirty.ng-invalid > div.selectize-input {
46+
border-color: #D44950;
47+
}
48+
4049

4150
/* Bootstrap theme */
4251

@@ -91,3 +100,8 @@
91100
.ui-select-search.ng-hide-add {
92101
display: none !important;
93102
}
103+
104+
/* Mark invalid Bootstrap */
105+
.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
106+
border-color: #D44950;
107+
}

0 commit comments

Comments
 (0)