2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Docs: Improve accessibility of disabled link example (#27614)

Add `tabindex="-1"` and `aria-disabled="true"` to disabled link
This commit is contained in:
ysds
2018-11-06 17:47:59 +09:00
committed by XhmikosR
parent e5d9e0a06c
commit 8de915eded
4 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -587,7 +587,7 @@ Add `.disabled` to items in the dropdown to **style them as disabled**.
{% capture example %}
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Regular link</a>
<a class="dropdown-item disabled" href="#">Disabled link</a>
<a class="dropdown-item disabled" href="#" tabindex="-1" aria-disabled="true">Disabled link</a>
<a class="dropdown-item" href="#">Another link</a>
</div>
{% endcapture %}