Closed JustinPierce closed 10 years ago
It seems I'm unable to reproduce it. Could you please show exactly what you BMVC code you have in place?
The following code produces the described behavior:
@(Html.Bootstrap()
.CheckBox("theCheckBox")
.Label()
.LabelText("This is a check box"))
However, I've just found that using a FormGroup()
instead of a bare check box does produce the correct markup. Of course, it also introduces the margins associated with a form-group
.
This is fixed.
The
.Checkbox()
method currently renders something similar to the following HTML:The problem is that the internal label should no longer have the
checkbox
class in Bootstrap 3. The additionalcheckbox
class on the label causes the checkbox to have an extra 20px of padding between the input and the label.