Skip to content

Commit f3c3096

Browse files
authored
fix(material/datepicker): incorrect year count in aria label (#22763)
Fixes that the `aria-label` of the navigation buttons in the year view said "20 years", even though we're showing 24 years. Fixes #22758.
1 parent 0059efb commit f3c3096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/datepicker/datepicker-intl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export class MatDatepickerIntl {
4141
nextYearLabel: string = 'Next year';
4242

4343
/** A label for the previous multi-year button (used by screen readers). */
44-
prevMultiYearLabel: string = 'Previous 20 years';
44+
prevMultiYearLabel: string = 'Previous 24 years';
4545

4646
/** A label for the next multi-year button (used by screen readers). */
47-
nextMultiYearLabel: string = 'Next 20 years';
47+
nextMultiYearLabel: string = 'Next 24 years';
4848

4949
/** A label for the 'switch to month view' button (used by screen readers). */
5050
switchToMonthViewLabel: string = 'Choose date';

0 commit comments

Comments
 (0)