Skip to content

Commit

Permalink
fix(material/datepicker): fix duplicate nav stop with Voiceover (#24085)
Browse files Browse the repository at this point in the history
Fixes double nav stops when navigating the calendar-body with voiceover
. Fixes this by putting `aria-hidden="true"` on the
`.mat-calendar-body-cell-preview`, since that element is only visual,
and is not for giving semantic info to the a11y tree.

fixes #24082

(cherry picked from commit 795d849)
  • Loading branch information
zarend authored and mmalerba committed Dec 17, 2021
1 parent 642c977 commit c6f7b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/datepicker/calendar-body.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
[class.mat-calendar-body-today]="todayValue === item.compareValue">
{{item.displayValue}}
</div>
<div class="mat-calendar-body-cell-preview"></div>
<div class="mat-calendar-body-cell-preview" aria-hidden="true"></div>
</td>
</tr>

0 comments on commit c6f7b94

Please sign in to comment.