Skip to content

Commit 4db520b

Browse files
Don't bind validation to form controls
1 parent bf57274 commit 4db520b

File tree

1 file changed

+7
-30
lines changed

1 file changed

+7
-30
lines changed

scss/mixins/_forms.scss

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
@include border-radius($form-feedback-tooltip-border-radius);
6464
}
6565

66+
@include form-validation-state-selector($state) {
67+
~ .#{$state}-feedback,
68+
~ .#{$state}-tooltip {
69+
display: block;
70+
}
71+
}
72+
6673
.form-control {
6774
@include form-validation-state-selector($state) {
6875
border-color: $color;
@@ -79,11 +86,6 @@
7986
border-color: $color;
8087
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
8188
}
82-
83-
~ .#{$state}-feedback,
84-
~ .#{$state}-tooltip {
85-
display: block;
86-
}
8789
}
8890
}
8991

@@ -110,21 +112,6 @@
110112
border-color: $color;
111113
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
112114
}
113-
114-
~ .#{$state}-feedback,
115-
~ .#{$state}-tooltip {
116-
display: block;
117-
}
118-
}
119-
}
120-
121-
122-
.form-control-file {
123-
@include form-validation-state-selector($state) {
124-
~ .#{$state}-feedback,
125-
~ .#{$state}-tooltip {
126-
display: block;
127-
}
128115
}
129116
}
130117

@@ -143,11 +130,6 @@
143130
~ .form-check-label {
144131
color: $color;
145132
}
146-
147-
~ .#{$state}-feedback,
148-
~ .#{$state}-tooltip {
149-
display: block;
150-
}
151133
}
152134
}
153135
.form-check-inline .form-check-input {
@@ -163,11 +145,6 @@
163145
border-color: $color;
164146
}
165147

166-
~ .#{$state}-feedback,
167-
~ .#{$state}-tooltip {
168-
display: block;
169-
}
170-
171148
&:focus {
172149
~ .form-file-label {
173150
border-color: $color;

0 commit comments

Comments
 (0)