mui / mui/base-ui

Use `aria-modal` in dialogs

Open
#4,843 1 comment 0 reactions 0 assignees View on GitHub
component: dialog
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Feature request

## Summary

`aria-modal` is a more modern alternative

## Examples in other libraries

React Spectrum uses aria-modal (with an optional [polyfill](https://github.com/adobe/react-spectrum/tree/092229c62c070e6405d4b6d74bb27f328508e781/packages/%40react-aria/aria-modal-polyfill))

## Motivation

Using `aria-modal` should present a better UX for users using browser/screen readers that support this property compared to adding `aria-hidden` to elements outside the dialog.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.