mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
Update form validation states
* Once again no longer applies to single inputs (this is a bit simpler, but I'm open to new ideas) but the entire set of inputs, labels, and help text within a particular element. However, the styles are not too dependent on markup or layout, so they're super flexible. * Simplified the markup in the validation docs examples to match latest changes. * Renamed `.form-state-validation` mixin to `.form-control-validation` to match naming of prev commit.
This commit is contained in:
+3
-3
@@ -264,15 +264,15 @@ select {
|
||||
|
||||
// Warning
|
||||
.has-warning {
|
||||
.form-field-validation(@state-warning-text, @state-warning-text, @state-warning-bg);
|
||||
.form-control-validation(@state-warning-text, @state-warning-text, @state-warning-bg);
|
||||
}
|
||||
// Error
|
||||
.has-error {
|
||||
.form-field-validation(@state-danger-text, @state-danger-text, @state-danger-bg);
|
||||
.form-control-validation(@state-danger-text, @state-danger-text, @state-danger-bg);
|
||||
}
|
||||
// Success
|
||||
.has-success {
|
||||
.form-field-validation(@state-success-text, @state-success-text, @state-success-bg);
|
||||
.form-control-validation(@state-success-text, @state-success-text, @state-success-bg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user