Skip to content

Commit a243ef9

Browse files
stevenyxuandrewseguin
authored andcommitted
fix(radio): show ripple on programmatic focus (#16512)
At least Windows/NVDA+JAWS can send focus to mat-radio-button without being detected through the keyboard focused handler. We should still show the same focused style in this case. (cherry picked from commit f2cbade)
1 parent febcaff commit a243ef9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/material/radio/radio.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ $mat-radio-ripple-radius: 20px;
153153
opacity: 0.04;
154154
}
155155

156-
.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused & {
156+
.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused &,
157+
.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused & {
157158
opacity: 0.12;
158159
}
159160

0 commit comments

Comments
 (0)