Skip to content

Commit 8ce65ca

Browse files
Superd22jelbourn
authored andcommitted
fix(ripple): prevent color flicker on radio/checkbox (angular#1705)
1 parent 681fbd5 commit 8ce65ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/lib/checkbox/_checkbox-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
}
7070

71-
.md-checkbox-focused {
71+
.md-checkbox:not(.md-checkbox-disabled) {
7272
&.md-primary .md-checkbox-ripple .md-ripple-foreground {
7373
background-color: md-color($primary, 0.26);
7474
}

src/lib/radio/_radio-theme.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
}
3030
}
3131

32-
.md-radio-focused .md-radio-ripple .md-ripple-foreground {
32+
.md-radio-ripple .md-ripple-foreground {
3333
background-color: md-color($accent, 0.26);
34+
35+
.md-radio-disabled & {
36+
background-color: md-color($foreground, disabled);
37+
}
3438
}
3539
}

0 commit comments

Comments
 (0)