aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2015-12-25 21:13:57 +0000
committerPatrick H. Lauke <[email protected]>2015-12-25 21:13:57 +0000
commit66479d8a5f1e0ed6c120c061af6fad057778942c (patch)
treeaad33d91074ca9bed1a2456668d5dd6b96a87d9d /docs
parent4258fb7992666bbe2e1adfb04c332b4b3bc86f2f (diff)
downloadbootstrap-66479d8a5f1e0ed6c120c061af6fad057778942c.tar.xz
bootstrap-66479d8a5f1e0ed6c120c061af6fad057778942c.zip
Add aria-disabled to disabled link example and description
Diffstat (limited to 'docs')
-rw-r--r--docs/components/buttons.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/components/buttons.md b/docs/components/buttons.md
index 0ca8c0e08..f2e6fc6d7 100644
--- a/docs/components/buttons.md
+++ b/docs/components/buttons.md
@@ -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 %}