Skip to content

Commit

Permalink
fix(radio): show ripple on programmatic focus (#16512)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
stevenyxu authored and andrewseguin committed Aug 26, 2019
1 parent febcaff commit a243ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/material/radio/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ $mat-radio-ripple-radius: 20px;
opacity: 0.04;
}

.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused & {
.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused &,
.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused & {
opacity: 0.12;
}

Expand Down

0 comments on commit a243ef9

Please sign in to comment.