v4 Migration docs still refer to .has-danger
Created by: exige81
From docs/4.0/migration.md
Forms
- Moved element resets to the
_reboot.scssfile. - Renamed
.control-labelto.form-control-label. - Renamed
.input-lgand.input-smto.form-control-lgand.form-control-sm, respectively. - Dropped
.form-group-*classes for simplicity's sake. Use.form-control-*classes instead now. - Dropped
.help-blockand replaced it with.form-textfor block-level help text. For inline help text and other flexible options, use utility classes like.text-muted. - Dropped
.radio-inlineand.checkbox-inline. - Horizontal forms overhauled:
- Dropped the
.form-horizontalclass requirement. -
.form-groupno longer applies styles from the.rowvia mixin, so.rowis now required for horizontal grid layouts (e.g.,<div class="form-group row">). - Added new
.form-control-labelclass to vertically center labels with.form-controls. - Added new
.form-rowfor compact form layouts with the grid classes (swap your.rowfor a.form-rowand go).
- Dropped the
- Added custom forms support (for checkboxes, radios, selects, and file inputs).
- Added HTML5 form validation support via CSS's
:invalidand:validpseudo-classes. - Renamed.has-errorto.has-danger. - Renamed
.form-control-staticto.form-control-plaintext.
This was replaced by .is-invalid