aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/js/tabs.html
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2015-06-02 09:41:40 +0100
committerPatrick H. Lauke <[email protected]>2015-06-02 11:03:21 +0100
commit5fd7bc1554d492bdd5794d35fce515fe951439a6 (patch)
tree61ac7cd8243c6d6c4c6e8de4b373132b01419df7 /docs/_includes/js/tabs.html
parent3b59b97c626bf2accef8217339b04712666c36d9 (diff)
downloadbootstrap-5fd7bc1554d492bdd5794d35fce515fe951439a6.tar.xz
bootstrap-5fd7bc1554d492bdd5794d35fce515fe951439a6.zip
generalize dropdowns / drop role="menu"
as role="menu" is a very specific (and strict) ARIA pattern for desktop-like application menus, and our dropdowns are often used as pure navigation dropdowns, this change abandons ARIA menus for a more open-ended and light-weight approach (see http://heydonworks.com/practical_aria_examples/#submenus and http://www.w3.org/WAI/tutorials/menus/flyout/#improve-screen-reader-support-using-wai-aria) note that in dropdown.js, switched to now target ``.dropdown-menu`` instead of ``role["menu"]`` - this also prevents bootstrap scripts from "bleeding" into non-bootstrap components on the same page. also removed the ``role=["listbox"]`` part, which appears to be vestigial/unused (only place in bootstrap that uses that role are carousels, and their key handling is done separately)
Diffstat (limited to 'docs/_includes/js/tabs.html')
-rw-r--r--docs/_includes/js/tabs.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/_includes/js/tabs.html b/docs/_includes/js/tabs.html
index c78f9936d..5ce8a766e 100644
--- a/docs/_includes/js/tabs.html
+++ b/docs/_includes/js/tabs.html
@@ -9,9 +9,9 @@
<li role="presentation"><a href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile">Profile</a></li>
<li role="presentation" class="dropdown">
<a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown" aria-controls="myTabDrop1-contents">Dropdown <span class="caret"></span></a>
- <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1" id="myTabDrop1-contents">
- <li><a href="#dropdown1" tabindex="-1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1">@fat</a></li>
- <li><a href="#dropdown2" tabindex="-1" role="tab" id="dropdown2-tab" data-toggle="tab" aria-controls="dropdown2">@mdo</a></li>
+ <ul class="dropdown-menu" aria-labelledby="myTabDrop1" id="myTabDrop1-contents">
+ <li><a href="#dropdown1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1">@fat</a></li>
+ <li><a href="#dropdown2" role="tab" id="dropdown2-tab" data-toggle="tab" aria-controls="dropdown2">@mdo</a></li>
</ul>
</li>
</ul>