From: Patrick H. Lauke Date: Tue, 11 Nov 2014 22:13:25 +0000 (+0000) Subject: Improved accessible glyphicon advice/use X-Git-Tag: v3.3.1~16^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb580f739ce8aec357f0847a687a8b372ab0d58a;p=thirdparty%2Fbootstrap.git Improved accessible glyphicon advice/use ...to actually make it consistent with what I said in the glyphicon docs section... --- 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)
- - + + + (warning)
- - + + + (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)
{% endhighlight %}