Skip to content

Commit

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

Referencing #421.
  • Loading branch information
crisbeto authored and jelbourn committed Nov 8, 2016
1 parent dca6ea3 commit 15cd28b
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 15cd28b

Please sign in to comment.