aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/carousel
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/examples/carousel
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/examples/carousel')
-rw-r--r--docs/examples/carousel/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/carousel/index.html b/docs/examples/carousel/index.html
index 28d1aafce..921c93b52 100644
--- a/docs/examples/carousel/index.html
+++ b/docs/examples/carousel/index.html
@@ -50,8 +50,8 @@
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="caret"></span></a>
- <ul class="dropdown-menu" role="menu">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
+ <ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>