mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
dropdowns.html: Add role="button" and id="..." to link in example.
This commit is contained in:
parent
94472ee74a
commit
816c8f480a
@ -104,7 +104,7 @@
|
|||||||
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
|
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="dropdown">
|
<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 class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
@ -117,7 +117,6 @@
|
|||||||
Dropdown <span class="caret"></span>
|
Dropdown <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||||
...
|
...
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user