Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdDialog: focus trap broken, incorrectly allowing keyboard navigation behind the modal #4105

@marcysutton

Description

@marcysutton

Somehow in the latest rewrite of the dialog, it no longer traps keyboard focus inside the modal. You can shift+tab and get to the Alert, Confirm and Custom demo dialog buttons behind the modal (and beyond), or tab to cycle through the whole document. This is incorrect–it should trap focus inside of the dialog in addition to disabling everything in the background with aria-hidden="true" (which it still does).

The alert & custom dialog demos were also changed to only cover the embedded demo part of the screen, while the custom one still covers the whole screen...which is confusing for a keyboard user. They should really cover the entire viewport to visually indicate that all other links behind the dialog are disabled.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions