Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug(Datepicker): mat-datepicker-input has aria-haspopup attribute but input field does not trigger any popup #31814

Open
Labels
needs triageThis issue needs to be triaged by the team
@RiinaKuu

Description

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

mat-datepicker-input input element uses aria-haspopup="dialog" but input element itself does not trigger any popup. The calendar dialog popup can be triggered only from the mat-datepicker-toggle button, which correctly has the aria-haspopup attribute.

This violates WCAG Success Criterion 4.1.2: Name, Role, Value (Level A).

Reproduction

Example link: https://material.angular.dev/components/datepicker/overview

Steps to reproduce:

  • Go to the Angular Material link above (I used Chrome)
  • Start the screen reader (I used VoiceOver on MacOS)
  • Navigate to the first Basic Datepicker example and its input field
  • Notice that it is informing that the input has dialog pop up

Expected Behavior

The input field should not have screen reader information about popup, since it is not triggering anything.

Actual Behavior

Image

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /