Skip to content

Commit 5a5fb4d

Browse files
committed
Enable use of form validation class on .radio, .checkbox, .radio-inline, and .checkbox-inline
twbs/bootstrap#10522
1 parent 22e08f7 commit 5a5fb4d

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

css/flat-ui.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,11 @@ textarea.input-hg {
11961196
height: auto;
11971197
}
11981198
.has-warning .help-block,
1199-
.has-warning .control-label {
1199+
.has-warning .control-label,
1200+
.has-warning .radio,
1201+
.has-warning .checkbox,
1202+
.has-warning .radio-inline,
1203+
.has-warning .checkbox-inline {
12001204
color: #f1c40f;
12011205
}
12021206
.has-warning .form-control {
@@ -1233,7 +1237,11 @@ textarea.input-hg {
12331237
background-color: #ffffff;
12341238
}
12351239
.has-error .help-block,
1236-
.has-error .control-label {
1240+
.has-error .control-label,
1241+
.has-error .radio,
1242+
.has-error .checkbox,
1243+
.has-error .radio-inline,
1244+
.has-error .checkbox-inline {
12371245
color: #e74c3c;
12381246
}
12391247
.has-error .form-control {
@@ -1270,7 +1278,11 @@ textarea.input-hg {
12701278
background-color: #ffffff;
12711279
}
12721280
.has-success .help-block,
1273-
.has-success .control-label {
1281+
.has-success .control-label,
1282+
.has-success .radio,
1283+
.has-success .checkbox,
1284+
.has-success .radio-inline,
1285+
.has-success .checkbox-inline {
12741286
color: #2ecc71;
12751287
}
12761288
.has-success .form-control {

less/mixins.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,11 @@
709709
.form-control-validation(@text-color: @brand-primary; @border-color: @gray-light; @background-color: @inverse) {
710710
// Color the label and help text
711711
.help-block,
712-
.control-label {
712+
.control-label,
713+
.radio,
714+
.checkbox,
715+
.radio-inline,
716+
.checkbox-inline {
713717
color: @text-color;
714718
}
715719
// Set the border and box shadow on specific inputs to match

0 commit comments

Comments
 (0)