From eb580f739ce8aec357f0847a687a8b372ab0d58a Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Tue, 11 Nov 2014 22:13:25 +0000 Subject: Improved accessible glyphicon advice/use ...to actually make it consistent with what I said in the glyphicon docs section... --- docs/_includes/css/forms.html | 62 ++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 25 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/css/forms.html b/docs/_includes/css/forms.html index 6fabb4c78..96b9b6ce0 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 %} -- cgit v1.2.3 From 9391ef207ff05f28e3952afdb92639c02b5920f5 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Tue, 11 Nov 2014 22:41:21 +0000 Subject: aria-hidden added to some stray glyphicons plus minor tweak to customizer's generated alerts --- .../getting-started/browser-device-support.html | 46 +++++++++++----------- docs/_includes/js/carousel.html | 12 +++--- 2 files changed, 29 insertions(+), 29 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/getting-started/browser-device-support.html b/docs/_includes/getting-started/browser-device-support.html index 306023d7b..2f3802b84 100644 --- a/docs/_includes/getting-started/browser-device-support.html +++ b/docs/_includes/getting-started/browser-device-support.html @@ -19,33 +19,33 @@ Android - Supported - Supported + Supported + Supported N/A - Not Supported + Not Supported N/A iOS - Supported + Supported N/A - Not Supported - Supported + Not Supported + Supported Mac OS X - Supported - Supported - Supported - Supported + Supported + Supported + Supported + Supported Windows - Supported - Supported - Supported - Supported - Not Supported + Supported + Supported + Supported + Supported + Not Supported @@ -67,26 +67,26 @@ border-radius - Not supported - Supported + Not supported + Supported box-shadow - Not supported - Supported + Not supported + Supported transform - Not supported - Supported, with -ms prefix + Not supported + Supported, with -ms prefix transition - Not supported + Not supported placeholder - Not supported + Not supported diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html index a74802b62..9c13aa033 100644 --- a/docs/_includes/js/carousel.html +++ b/docs/_includes/js/carousel.html @@ -23,11 +23,11 @@ - + Previous - + Next @@ -60,11 +60,11 @@ - + Previous - + Next @@ -108,11 +108,11 @@ - + Previous - + Next -- cgit v1.2.3