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);
741
741
}
742
742
});
743
-
*/
744
-
/*
745
-
addLinter('E010', function lintMultipleFormControlsInInputGroup($, reporter) {
746
-
var badInputGroups = $('.input-group').filter(function (i, inputGroup) {
reporter('Input groups cannot contain multiple `.form-control`s', badInputGroups);
751
-
}
752
-
});
753
-
*/
754
-
/*
755
743
addLinter('E011', function lintFormGroupMixedWithInputGroup($, reporter) {
756
-
var badMixes = $('.input-group.form-group');
744
+
var badMixes = $('.input-group.form-group, .input-group.row, .input-group.form-row');
757
745
if (badMixes.length) {
758
-
reporter('`.input-group` and `.form-group` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.form-group`', badMixes);
746
+
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);
759
747
}
760
748
});
761
-
*/
762
-
/*
763
749
addLinter('E012', function lintGridClassMixedWithInputGroup($, reporter) {
764
750
var selector = COL_CLASSES.map(function (colClass) {
765
751
return '.input-group' + colClass;
766
752
}).join(',');
767
753
768
754
var badMixes = $(selector);
769
755
if (badMixes.length) {
770
-
reporter('`.input-group` and `.col-*-*` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.col-*-*`', badMixes);
756
+
reporter('`.input-group` and `.col*` cannot be used directly on the same element. Instead, nest the `.input-group` within the `.col*`', badMixes);
771
757
}
772
758
});
773
-
*/
774
759
/*
775
760
addLinter('E013', function lintRowChildrenAreCols($, reporter) {
776
761
var ALLOWED_CHILDREN = COL_CLASSES.concat(['script', '.clearfix', '.bs-customizer-input']);
@@ -797,22 +782,6 @@ var LocationIndex = _location.LocationIndex;
797
782
});
798
783
*/
799
784
/*
800
-
addLinter('E015', function lintInputGroupsWithMultipleAddOnsPerSide($, reporter) {
801
-
var addOnClasses = ['.input-group-addon', '.input-group-btn'];
802
-
var combos = [];
803
-
addOnClasses.forEach(function (first) {
804
-
addOnClasses.forEach(function (second) {
805
-
combos.push('.input-group>' + first + '+' + second);
806
-
});
807
-
});
808
-
var selector = combos.join(',');
809
-
var multipleAddOns = $(selector);
810
-
if (multipleAddOns.length) {
811
-
reporter('Having multiple add-ons on a single side of an input group is not supported', multipleAddOns);
812
-
}
813
-
});
814
-
*/
815
-
/*
816
785
addLinter('E016', function lintBtnToggle($, reporter) {
817
786
var badBtnToggle = $('.btn.dropdown-toggle ~ .btn');
818
787
if (badBtnToggle.length) {
@@ -1168,17 +1137,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