@@ -489,49 +489,53 @@ Trigger dropdown menus at the left of the elements by adding `.dropleft` to the
489
489
</div>
490
490
</div >
491
491
492
- <div class =" btn-group dropleft " >
492
+ <div class =" btn-group " >
493
+ <div class="btn-group dropleft" role="group">
494
+ <button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
495
+ <span class="sr-only">Toggle Dropleft</span>
496
+ </button>
497
+ <div class="dropdown-menu">
498
+ <a class="dropdown-item" href="#">Action</a>
499
+ <a class="dropdown-item" href="#">Another action</a>
500
+ <a class="dropdown-item" href="#">Something else here</a>
501
+ <div class="dropdown-divider"></div>
502
+ <a class="dropdown-item" href="#">Separated link</a>
503
+ </div>
504
+ </div>
493
505
<button type="button" class="btn btn-secondary">
494
506
Split dropleft
495
507
</button>
496
- <button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
497
- <span class="sr-only">Toggle Dropleft</span>
498
- </button>
499
- <div class="dropdown-menu">
500
- <a class="dropdown-item" href="#">Action</a>
501
- <a class="dropdown-item" href="#">Another action</a>
502
- <a class="dropdown-item" href="#">Something else here</a>
503
- <div class="dropdown-divider"></div>
504
- <a class="dropdown-item" href="#">Separated link</a>
505
- </div>
506
508
</div >
507
509
</div >
508
510
509
511
{% highlight html %}
510
512
<!-- Default dropleft button -->
511
513
<div class =" btn-group dropleft " >
512
- <button type =" button " class =" btn btn-secondary " >Dropleft</button >
513
514
<button type =" button " class =" btn btn-secondary dropdown-toggle " data-toggle =" dropdown " aria-haspopup =" true " aria-expanded =" false " >
514
- <span class="sr-only">Toggle Dropleft</span>
515
+ Dropleft
515
516
</button >
516
517
<div class =" dropdown-menu " >
517
518
<!-- Dropdown menu links -->
518
519
</div >
519
520
</div >
520
521
521
522
<!-- Split dropleft button -->
522
- <div class =" btn-group dropleft " >
523
+ <div class =" btn-group " >
524
+ <div class =" btn-group dropleft " role =" group " >
525
+ <button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
526
+ <span class="sr-only">Toggle Dropleft</span>
527
+ </button>
528
+ <div class="dropdown-menu">
529
+ <!-- Dropdown menu links -->
530
+ </div>
531
+ </div >
523
532
<button type =" button " class =" btn btn-secondary " >
524
533
Split dropleft
525
534
</button >
526
- <button type =" button " class =" btn btn-secondary dropdown-toggle " data-toggle =" dropdown " aria-haspopup =" true " aria-expanded =" false " >
527
- <span class="sr-only">Toggle Dropleft</span>
528
- </button >
529
- <div class =" dropdown-menu " >
530
- <!-- Dropdown menu links -->
531
- </div >
532
535
</div >
533
536
{% endhighlight %}
534
537
538
+
535
539
## Menu items
536
540
537
541
Historically dropdown menu contents * had* to be links, but that's no longer the case with v4. Now you can optionally use ` <button> ` elements in your dropdowns instead of just ` <a> ` s.
0 commit comments