Skip to content

Commit 9e53c63

Browse files
committed
fix(radio): only show focus ripple for keyboard focus
After the switch to the latest Material Design spec, we started showing the focus ripple for all kinds of focus, however it's only supposed to be for keyboard focus. Fixes #13544.
1 parent ac97157 commit 9e53c63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/radio/radio.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ $mat-radio-ripple-radius: 20px;
141141
opacity: 0.04;
142142
}
143143

144-
.mat-radio-button.cdk-focused & {
144+
// TODO(crisbeto): this is supposed to be for `cdk-program-focused` as well,
145+
// however the focus monitor doesn't pick up clicking on label correctly.
146+
.mat-radio-button.cdk-keyboard-focused & {
145147
opacity: 0.12;
146148
}
147149

0 commit comments

Comments
 (0)