]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add aria-disabled to disabled link example and description 18679/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Fri, 25 Dec 2015 21:13:57 +0000 (21:13 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Fri, 25 Dec 2015 21:13:57 +0000 (21:13 +0000)
docs/components/buttons.md

index 0ca8c0e08e85a3571da9c464b50d6ab15d07bd9a..f2e6fc6d7da26ec9b12c822f86b9c767c94e3d4a 100644 (file)
@@ -115,11 +115,11 @@ Make buttons look inactive by adding the `disabled` boolean attribute to any `<b
 <button type="button" class="btn btn-secondary btn-lg" disabled>Button</button>
 {% endexample %}
 
-As `<a>` elements don't support the `disabled` attribute, you must add the `.disabled` class to fake it.
+As `<a>` elements don't support the `disabled` attribute, you must add the `.disabled` class to fake it. In addition, include the `aria-disabled="true"` attribute, to indicate the state of the element to assistive technologies.
 
 {% example html %}
-<a href="#" class="btn btn-primary btn-lg disabled" role="button">Primary link</a>
-<a href="#" class="btn btn-secondary btn-lg disabled" role="button">Link</a>
+<a href="#" class="btn btn-primary btn-lg disabled" role="button" aria-disabled="true">Primary link</a>
+<a href="#" class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true">Link</a>
 {% endexample %}
 
 {% callout warning %}