diff options
| author | Patrick H. Lauke <[email protected]> | 2015-12-25 22:32:33 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2015-12-25 22:32:33 +0000 |
| commit | 097575ad434ac5cacc28aeac4b747095ee442007 (patch) | |
| tree | 7ac3d970d8c46737e0f8518b9117d6bd723180eb /docs/components | |
| parent | f954e5958cc95caf1a77b959f1dc914ac0ffeb18 (diff) | |
| parent | 66479d8a5f1e0ed6c120c061af6fad057778942c (diff) | |
| download | bootstrap-097575ad434ac5cacc28aeac4b747095ee442007.tar.xz bootstrap-097575ad434ac5cacc28aeac4b747095ee442007.zip | |
Merge pull request #18679 from patrickhlauke/docs-button-disabled1
Docs: add aria-disabled to disabled link example and description
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/buttons.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/components/buttons.md b/docs/components/buttons.md index 10fdd4e60..4e8d58ab3 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 %} |
