Skip to content

Commit 95b5444

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 bc563b7 commit 95b5444

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
@@ -142,7 +142,9 @@ $mat-radio-ripple-radius: 20px;
142142
opacity: 0.04;
143143
}
144144

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

0 commit comments

Comments
 (0)