Skip to content

Commit e8437be

Browse files
committed
fix(styles) Don't compound required invalid style with general invalid border
1 parent 0af85df commit e8437be

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

dist/forms-angular-with-bs2.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular-with-bs3.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular.js

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

dist/forms-angular.min.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/forms-angular-bs-common.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ form {
121121
margin: 5px 0;
122122
}
123123

124+
input.ng-invalid:not(.ng-invalid-required):focus {
125+
border: solid 1px red;
126+
}
127+
124128
input[type="checkbox"].ng-invalid-required:before, span:first-child input[type="radio"].ng-invalid-required:before {
125129
content:"*";
126130
font-weight: bold;
@@ -132,10 +136,6 @@ form {
132136
background-color: rgba(255, 0, 0, 0.10);
133137
}
134138

135-
input.ng-invalid:focus {
136-
border: solid 1px red;
137-
}
138-
139139
option {
140140
background-color: white;
141141
}

0 commit comments

Comments
 (0)