E028 - 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!


E028

.form-control-feedback must have a .form-group.has-feedback ancestor

See also: The "With optional icons" subsection of http://getbootstrap.com/css/#forms-control-validation

Wrong:

<div class="form-group has-error">
  <label class="control-label" for="inputError2">Input with error</label>
  <input type="text" class="form-control" id="inputError2">
  <span class="glyphicon glyphicon-remove form-control-feedback"></span>
</div>

Right:

<div class="form-group has-feedback has-error">
  <label class="control-label" for="inputError2">Input with error</label>
  <input type="text" class="form-control" id="inputError2">
  <span class="glyphicon glyphicon-remove form-control-feedback"></span>
</div>
⚠️ **GitHub.com Fallback** ⚠️