if parent has class "open" every "dropdown-toggle" will be affected
Created by: maggiben
Description: "dropdown-toggle" style changes if parents have class "open" File: mixins.less L:453 Versions affected: 3 and above Replicate issue:
<body class="open">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Default <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
</body>
More details: (mixins.less)
.open .dropdown-toggle& {
color: @color;
background-color: darken(@background, 8%);
border-color: darken(@border, 12%);
}
Targets all dropdown-toggle whos parents have class open, it should only do that for the first parent in my case the btn-group class.