]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
dropdowns.html: Add role="button" and id="..." to link in example. 14113/head
authorvsn4ik <vsn4ik@gmail.com>
Thu, 10 Jul 2014 17:44:46 +0000 (21:44 +0400)
committervsn4ik <vsn4ik@gmail.com>
Thu, 10 Jul 2014 17:44:46 +0000 (21:44 +0400)
docs/_includes/js/dropdowns.html

index c8bf50f51e9b1e0fa400d8bf077318489cb9b820..7a442fa0393b26aec4d640950f58d4c6b018ff98 100644 (file)
   <p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
 {% highlight html %}
 <div class="dropdown">
-  <a data-toggle="dropdown" href="#">Dropdown trigger</a>
+  <a id="dLabel" role="button" data-toggle="dropdown" href="#">Dropdown trigger</a>
   <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
     ...
   </ul>
     Dropdown <span class="caret"></span>
   </a>
 
-
   <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
     ...
   </ul>