Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
cvrebert edited this page Oct 4, 2014 · 1 revision

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>
Clone this wiki locally