Skip to content

Commit

Permalink
[fixed]: parent elements active style effected on Dropdown active sty…
Browse files Browse the repository at this point in the history
…le, resolves #872
  • Loading branch information
Minwe committed May 20, 2016
1 parent 9933762 commit 750e5ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@
&:focus,
&:active,
&.@{ns}active,
.@{ns}active &.@{ns}dropdown-toggle {
// fixes #872
// dropdown nested in component has `.am-active` state should not active
.@{ns}dropdown.@{ns}active &.@{ns}dropdown-toggle {
color: @color;
border-color: darken(@border, 12%);
}
Expand All @@ -836,7 +838,7 @@

&:active,
&.@{ns}active,
.@{ns}active &.@{ns}dropdown-toggle {
.@{ns}dropdown.@{ns}active &.@{ns}dropdown-toggle {
background-image: none;
background-color: darken(@background, 14%);
}
Expand All @@ -859,6 +861,8 @@
.@{ns}btn-group-stacked & {
border-color: darken(@background, 5%);
}

// TODO: add `hollow` button style
}

// Button size
Expand Down

0 comments on commit 750e5ff

Please sign in to comment.