Skip to content

Commit

Permalink
fix(split buttons): missing .active & disabled states
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jul 20, 2020
1 parent 7a2b1e7 commit 3a68f31
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scss/_button-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,20 @@
);
}

.btn:active + & {
.btn:active + &,
.btn.active + & {
border-color: $primary;
}

.btn:disabled + &,
.btn.disabled + & {
border-color: $gray-500;

&::before {
color: $gray-500;
}
}

.btn-group.show > &:not(:focus):not(:active)::before {
color: $primary;
background-color: currentColor;
Expand Down

0 comments on commit 3a68f31

Please sign in to comment.