diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 7737ae909e..d9ae0bf700 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -613,9 +613,9 @@
Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add .has-warning
, .has-error
, or .has-success
to the parent element. Any .control-label
, .form-control
, and .help-block
within that element will receive the validation styles.
Using these validation styles to denote the state of a form control only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers.
-Ensure that an alternative indication of state is also provided. For instance, you can include a hint about state in the form control's <label>
text itself (as is the case in the following code example), or associate an additional element with textual information about the validation state with the form control using aria-describedby
(see the example in the following section). In the case of an error, you could also use the aria-invalid="true"
attribute on the form control.
Using these validation styles to denote the state of a form control only provides a visual, color-based indication, which will not be conveyed to users of assistive technologies - such as screen readers - or to colorblind users.
+Ensure that an alternative indication of state is also provided. For instance, you can include a hint about state in the form control's <label>
text itself (as is the case in the following code example), include a Glyphicon (with appropriate alternative text using the .sr-only
class - see the Glyphicon examples), or by providing an additional help text block. Specifically for assistive technologies, invalid form controls can also be assigned an aria-invalid="true"
attribute.