Skip to content

[Snackbar] Screen reader not reading a snackbar when triggered from a button within a dialog #30097

@TheWilks

Description

@TheWilks

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When snackbars are triggered from a button within a dialog they are not read by the screen reader.

Expected behavior 🤔

When snackbars are triggered from a button within a dialog they should be read by the screen reader.

Steps to reproduce 🕹

Steps

  1. User launches NVDA or JAWS
  2. User opens https://codesandbox.io/s/dialog-snackbar-not-accessible-gzl5o?file=/demo.js in Chrome, Firefox or Edge
  3. User clicks the "OPEN DIALOG" button and the dialog is launched
  4. User clicks the "OPEN SNACKBAR" button within the dialog and the snackbar is launch
  5. The screen reader does not read the snackbar and the user of the assistive technology is unaware the snackbar exists

Context 🔦

We are building forms and flows that combine the dialog and snackbar components. We need some none intrusive alerts that inform users their task was successful. Snackbars fit our need but are not accessible when triggered from a button within a dialog.

Your environment 🌎

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions