Skip to content

Commit 15cd28b

Browse files
crisbetojelbourn
authored andcommitted
fix(button-toggle): missing hover state (#1733)
Adds a hover effect to the button toggles. Referencing #421.
1 parent dca6ea3 commit 15cd28b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/button-toggle/_button-toggle-theme.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
@mixin md-button-toggle-theme($theme) {
66
$foreground: map-get($theme, foreground);
77

8-
.md-button-toggle-checked .md-button-toggle-label-content {
9-
background-color: md-color($md-grey, 300);
8+
.md-button-toggle-checked, md-button-toggle:not(.md-button-toggle-disabled):hover {
9+
.md-button-toggle-label-content {
10+
background-color: md-color($md-grey, 300);
11+
}
1012
}
13+
1114
.md-button-toggle-disabled .md-button-toggle-label-content {
1215
background-color: md-color($foreground, disabled);
1316
}

0 commit comments

Comments
 (0)