Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Components
  2. Modal
  3. Accessibility
  4. Aria Attributes

Modal

ARIA Attributes

Modals use proper ARIA attributes to communicate structure and state.

Dialog Role

Modals use the appropriate ARIA dialog role.

The modal container uses role="dialog" to identify it as a dialog, and the heading is associated using aria-labelledby.

Modal Labeling

Modals are properly labeled for screen readers.

The heading serves as the accessible name for the modal, announced by screen readers when the modal opens.

Described By

Additional content can be described using aria-describedby.

Screen readers announce both the heading and the description when the modal opens.

Previous

Accessibility / Focus Management

Next

Accessibility / Screen Reader Support

On this page

Dialog Role
Modal Labeling
Described By