I want to be able to use a td as a btn-group, with a custom class but cant get it to work correctly
Markup
<td class="actions">
<a href="/foo/bar" class="btn"><span class="fa fa-edit fa-lg "></span> Edit</a>
<a href="#" data-toggle="dropdown" class="btn btn-default dropdown-toggle"><span class="fa fa-caret-down fa-lg "></span></a>
<ul class="dropdown-menu">
<li><a href="/foo/bar"><span class="fa fa-times fa-lg "></span> Delete</a></li>
<li><a href="/foo/bar"><span class="fa fa-times fa-lg "></span> Delete</a></li>
<li><a href="/foo/bar"><span class="fa fa-times fa-lg "></span> Delete</a></li>
</ul>
</td>
Less
td {
&.actions {
> a {
.pull-left;
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
&:first-child {
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
}
}
}
}
I have tried a couple things such as &.actions:extend(:btn-group)
but the toggle does not show the UL
and it does not create a button group (eg: the buttons have rounded corners all the way round)
Adding the btn-group
class to the td and everything works fine.