]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add tabindex attribute to disabled buttons sample. Closes #23361 (#25680)
authorPeter Blazejewicz <peterblazejewicz@users.noreply.github.com>
Sat, 24 Feb 2018 23:15:19 +0000 (00:15 +0100)
committerPatrick H. Lauke <redux@splintered.co.uk>
Sat, 24 Feb 2018 23:15:19 +0000 (23:15 +0000)
As discussed in issue's comment:
https://git.io/vAuPW

Thanks!

docs/4.0/components/buttons.md

index 60373be6c7cdedd207c5501a7eb9bc3e271af78f..d37fbfcf82de4ad9d9fe2dd6d6b20e1489a83bdc 100644 (file)
@@ -90,8 +90,8 @@ Disabled buttons using the `<a>` element behave a bit different:
 - Disabled buttons should 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" aria-disabled="true">Primary link</a>
-<a href="#" class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true">Link</a>
+<a href="#" class="btn btn-primary btn-lg disabled" tabindex="-1" role="button" aria-disabled="true">Primary link</a>
+<a href="#" class="btn btn-secondary btn-lg disabled" tabindex="-1" role="button" aria-disabled="true">Link</a>
 {% endexample %}
 
 {% callout warning %}