Skip to content

bug(MatDialog): Regression with aria-modal #25676

@antoinetb12

Description

@antoinetb12

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

13.x

Description

Since Angular 14 the aria-modal attribute in the mat-dialog-container is configurable, but the option is not present in the configuration class : MatDialogConfig.
As such we can't have aria-modal in the mat-dialog-container

Reproduction

Steps to reproduce:

  1. open a dialog with MatDialog

Expected Behavior

  • aria-modal="true" is present in the mat-dialog-container

or

  • presence of an ariaModal variable in the MatDialogConfig class

Actual Behavior

  • aria-modal is not present in the mat-dialog-container

or

  • ariaModal is not known in the MatDialogConfig class

Environment

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

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P2The issue is important to a large percentage of users, with a workaroundarea: material/dialog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions