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

Merge pull request #14113 from vsn4ik/add-attributes-for-dropdown-example

dropdowns.html: Add role="button" and id="..." to link in example.
This commit is contained in:
Chris Rebert 2014-07-10 13:32:22 -07:00
commit d8d954372c

View file

@ -104,7 +104,7 @@
<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>
@ -117,7 +117,6 @@
Dropdown <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
...
</ul>