E018 - Herst/bootlint-ng GitHub Wiki

Note: Below is the original page from the Bootlint documentation, some of the info here might not apply to Bootlint-NG!


E018

Incorrect markup used with the .radio class. The correct markup structure is .radio>label>input[type="radio"]

Bootstrap's .radio class requires the use of a specific DOM structure which matches the CSS selector .radio>label>input[type="radio"]. Using the .radio class with a different DOM structure can cause problems.

Right:

<div class="radio">
  <label>
    <input type="radio" name="someChoiceGroup" value="option1" />
    This is option number one
  </label>
</div>
⚠️ **GitHub.com Fallback** ⚠️