Skip to content

[material-ui][dialog] form dialog has invalid aria role in docs #41100

@objectfoo

Description

@objectfoo

Steps to reproduce

Example from mui documentation:

Steps:

  1. open form dialog
  2. launch chrome lighthouse tool

Current behavior

The form dialog example has an invalid aria role.
image

The form element needs to wrap both the DialogContent and DialogActions in order to work correctly, doing this will break the scroll-ability of a dialog with content longer than the window.

Expected behavior

It should not have an aria role issue, or it should allow DialogContent scroll-ability when there is a form element wrapping DialogTitle, DialogContent and DialogActions.

Context

No response

Your environment

This is in the mui docs.

Search keywords: accessibility dialog form

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions