You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
reporter('Button and input sizing within `.input-group`s can cause issues. Instead, use input group sizing classes `.input-group-lg` or `.input-group-sm`', badInputGroupSizing);
730
730
}
731
731
});
732
-
*/
733
-
/*
734
-
addLinter('E010', function lintMultipleFormControlsInInputGroup($, reporter) {
735
-
var badInputGroups = $('.input-group').filter(function (i, inputGroup) {
reporter('Input groups cannot contain multiple `.form-control`s', badInputGroups);
740
-
}
741
-
});
742
-
*/
743
-
/*
744
732
addLinter('E011', function lintFormGroupMixedWithInputGroup($, reporter) {
745
-
var badMixes = $('.input-group.form-group');
733
+
var badMixes = $('.input-group.form-group, .input-group.row, .input-group.form-row');
746
734
if (badMixes.length) {
747
-
reporter('`.input-group` and `.form-group` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`', badMixes);
735
+
reporter('`.input-group` and `.form-group`/`.row`/`.form-row` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`/`.row`/`.form-row`', badMixes);
748
736
}
749
737
});
750
-
*/
751
738
addLinter('E012', function lintGridClassMixedWithInputGroup($, reporter) {
752
739
var selector = COL_CLASSES.map(function (colClass) {
753
740
return '.input-group' + colClass;
@@ -781,22 +768,6 @@ var LocationIndex = _location.LocationIndex;
781
768
}
782
769
});
783
770
/*
784
-
addLinter('E015', function lintInputGroupsWithMultipleAddOnsPerSide($, reporter) {
785
-
var addOnClasses = ['.input-group-addon', '.input-group-btn'];
786
-
var combos = [];
787
-
addOnClasses.forEach(function (first) {
788
-
addOnClasses.forEach(function (second) {
789
-
combos.push('.input-group>' + first + '+' + second);
790
-
});
791
-
});
792
-
var selector = combos.join(',');
793
-
var multipleAddOns = $(selector);
794
-
if (multipleAddOns.length) {
795
-
reporter('Having multiple add-ons on a single side of an input group is not supported', multipleAddOns);
796
-
}
797
-
});
798
-
*/
799
-
/*
800
771
addLinter('E016', function lintBtnToggle($, reporter) {
801
772
var badBtnToggle = $('.btn.dropdown-toggle ~ .btn');
802
773
if (badBtnToggle.length) {
@@ -1147,17 +1118,15 @@ var LocationIndex = _location.LocationIndex;
['`.input-group` and `.form-group` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`'],
297
-
'should complain when .input-group and .form-group are used on the same element.');
284
+
['`.input-group` and `.form-group`/`.row`/`.form-row` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`/`.row`/`.form-row`'],
285
+
'should complain when .input-group and .form-group/.row/.form-row are used on the same element.');
298
286
test.done();
299
287
},
300
-
*/
301
-
/*
302
288
'mixing input groups with grid columns': function(test){
0 commit comments