Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen reader doesn't announce Dialog description but it announces Modal description #42196

Open
EmreErdogan opened this issue May 10, 2024 · 0 comments
Assignees
Labels
accessibility a11y component: dialog This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@EmreErdogan
Copy link

EmreErdogan commented May 10, 2024

Steps to reproduce

Link to live example:

Steps:

  1. Create a button and a Dialog / Modal
  2. Add aria-labelledby and aria-describedby props
  3. Open VoiceOver (another screen reader might work as well)
  4. Click the button

Current behavior

Screen reader announces both title and description of Modal.
Screen reader announces only title of Dialog.

Expected behavior

Screen reader should announce both title and description of Dialog.

Context

I am trying to make VoiceOver announce both the title referenced by aria-labelledby and the description referenced by aria-describedby. Because dialogs are good for alerting results, changes, or alerts. I am expecting a screen reader to announce dialog content.

Your environment

npx @mui/envinfo
 System:
    OS: macOS 14.4.1
  Binaries:
    Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 124.0.6367.156
    Edge: 124.0.2478.80
    Safari: 17.4.1
  npmPackages:
    @emotion/react: 11.11.4 => 11.11.4
    @emotion/styled: 11.11.5 => 11.11.5
    @mui/base:  5.0.0-beta.40
    @mui/core-downloads-tracker:  5.15.17
    @mui/material: 5.15.17 => 5.15.17
    @mui/private-theming:  5.15.14
    @mui/styled-engine:  5.15.14
    @mui/system:  5.15.15
    @mui/types:  7.2.14
    @mui/utils:  5.15.14
    @types/react: 18.3.1 => 18.3.1
    react: 18.3.1 => 18.3.1
    react-dom: 18.3.1 => 18.3.1
    typescript: 5.4.5 => 5.4.5

Search keywords: VoiceOver, Screen Reader, aria-describedby, Dialog, Modal

@EmreErdogan EmreErdogan added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 10, 2024
@zannager zannager added component: dialog This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: dialog This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants