Skip to content

Wrong Aria-Label on Datepicker Header for Next and Previous Year Selector Buttons #22758

@noobyogi0010

Description

@noobyogi0010

Reproduction

Steps to reproduce:

  1. Add Angular Material Datepicker component to you app.
  2. Open the app in the browser.
  3. Switch on any screen reader.
  4. Open the calendar dialog. Press tab to navigate to month selector.
  5. Press enter to enter the year range view.
  6. Press tab to navigate to the arrow buttons.
  7. Observe the output of screen reader.

Expected Behavior

What behavior were you expecting to see?
The screen reader should read Previous 24 years or Next 24 years as total 24 years are shown in the mat-calendar-content.

Actual Behavior

What behavior did you actually see?
The screen reader reads Previous 20 years or Next 20 years.

Environment

  • Angular: 11.0.9
  • CDK/Material: 11.2.13
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions