Closed
Description
I have a checkbox with a label and extra description. To align the description with the label
, I have wrapped them in a div
:
<div class="checkbox">
<input id="myCheckbox" type="checkbox" aria-describedby="myCheckboxInfo" />
<div class="checkbox-label">
<label for="myCheckbox">I agree</label>
<p id="myCheckboxInfo">Here is some extra info what I agree upon</p>
</div>
</div>
The plugin sees this as a violation of form-control-has-label
even though there is a label/@for
that refers to the id
of the checkbox. The function hasLabelElement
only checks the children of the parent but not their children.