Skip to content

Commit

Permalink
fix(ripple): prevent color flicker on radio/checkbox (#1705)
Browse files Browse the repository at this point in the history
  • Loading branch information
Superd22 authored and jelbourn committed Nov 3, 2016
1 parent 681fbd5 commit 8ce65ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/checkbox/_checkbox-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
}

.md-checkbox-focused {
.md-checkbox:not(.md-checkbox-disabled) {
&.md-primary .md-checkbox-ripple .md-ripple-foreground {
background-color: md-color($primary, 0.26);
}
Expand Down
6 changes: 5 additions & 1 deletion src/lib/radio/_radio-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
}
}

.md-radio-focused .md-radio-ripple .md-ripple-foreground {
.md-radio-ripple .md-ripple-foreground {
background-color: md-color($accent, 0.26);

.md-radio-disabled & {
background-color: md-color($foreground, disabled);
}
}
}

0 comments on commit 8ce65ca

Please sign in to comment.