Skip to content

Commit 046022f

Browse files
zarendandrewseguin
authored andcommitted
fix(material/datepicker): use aria-live over cdkAriaLive on period button (#24398)
On the period button on the calendar, use `aria-live` over `cdkAriaLive` because that seems to work better with VoiceOver. This fixes an issue where VoiceOver did not announce the month after clicking the "Month Month"/"Previous Month" buttons (#24397). Fixes #24397 (cherry picked from commit a8ec63c)
1 parent 6977597 commit 046022f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/datepicker/calendar-header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<button mat-button type="button" class="mat-calendar-period-button"
44
(click)="currentPeriodClicked()" [attr.aria-label]="periodButtonLabel"
55
[attr.aria-describedby]="_buttonDescriptionId"
6-
cdkAriaLive="polite">
6+
aria-live="polite">
77
<span [attr.id]="_buttonDescriptionId">{{periodButtonText}}</span>
88
<svg class="mat-calendar-arrow" [class.mat-calendar-invert]="calendar.currentView !== 'month'"
99
viewBox="0 0 10 5" focusable="false">

0 commit comments

Comments
 (0)