1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Add tabindex attribute to disabled buttons sample. Closes #23361 (#25680)

As discussed in issue's comment:
https://git.io/vAuPW

Thanks!
This commit is contained in:
Peter Blazejewicz 2018-02-25 00:15:19 +01:00 committed by Patrick H. Lauke
parent 9cf3ebbf2b
commit c9b194ae21

View 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 %}