Skip to content

Commit

Permalink
fix(button-toggle): missing hover state
Browse files Browse the repository at this point in the history
Adds a hover effect to the button toggles.

Referencing angular#421.
  • Loading branch information
crisbeto committed Nov 4, 2016
1 parent a0d85d8 commit e2de01a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/button-toggle/_button-toggle-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
@mixin md-button-toggle-theme($theme) {
$foreground: map-get($theme, foreground);

.md-button-toggle-checked .md-button-toggle-label-content {
background-color: md-color($md-grey, 300);
.md-button-toggle-checked, md-button-toggle:not(.md-button-toggle-disabled):hover {
.md-button-toggle-label-content {
background-color: md-color($md-grey, 300);
}
}

.md-button-toggle-disabled .md-button-toggle-label-content {
background-color: md-color($foreground, disabled);
}
Expand Down

0 comments on commit e2de01a

Please sign in to comment.