diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 6fabb4c78d..96b9b6ce05 100644 --- a/docs/_includes/css/forms.html +++ b/docs/_includes/css/forms.html @@ -653,43 +653,49 @@

Conveying the icon's meaning to assistive technologies

-

To ensure that assistive technologies – such as screen readers – correctly convey the meaning of an icon, additional hidden text should be included with the sr-only class, and the icon itself explicitly associated with the form control it relates to using aria-describedby. Alternatively, ensure that the meaning (for instance, the fact that there is a warning for a particular text entry field) is conveyed in some other form, such as changing the text of the actual <label> associated with the form control.

+

To ensure that assistive technologies – such as screen readers – correctly convey the meaning of an icon, additional hidden text should be included with the sr-only class and explicitly associated with the form control it relates to using aria-describedby. Alternatively, ensure that the meaning (for instance, the fact that there is a warning for a particular text entry field) is conveyed in some other form, such as changing the text of the actual <label> associated with the form control.

Although the following examples already mention the validation state of their respective form controls in the <label> text itself, the above technique (using sr-only text and aria-describedby) has been included for illustrative purposes.

- - + + + (success)
- - + + + (warning)
- - + + + (error)
{% highlight html %}
- - (success) + + + (success)
- - (warning) + + + (warning)
- - (error) + + + (error)
{% endhighlight %} @@ -699,8 +705,9 @@
- - + + + (success)
@@ -710,8 +717,9 @@
- - + + + (success)
@@ -721,8 +729,9 @@
- - + + + (success)
@@ -730,8 +739,9 @@
- - + + + (success)
{% endhighlight %} @@ -741,15 +751,17 @@
- - + + + (success)
{% highlight html %}
- - (success) + + + (success)
{% endhighlight %}