Skip to content

Snackbars not read by screen reader #29080

@TheWilks

Description

@TheWilks
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Snackbars are not being read by a screen reader in various scenarios but the majority of the issues are with Firefox...

  1. NVDA screen reader + Firefox: Screen reader is not reading the snackbar when triggering it with a button
  2. NVDA screen reader + Firefox: Screen reader is not reading the snackbar when triggering it with a menu
  3. NVDA screen reader + Firefox: Screen reader is not reading the snackbar when triggering it with a button within a dialog
  4. NVDA screen reader + Chrome: Screen reader is not reading the snackbar when triggering it with a button within a dialog

Expected Behavior 🤔

Snackbar should always be read by the screen reader no matter the scenario.

Steps to Reproduce 🕹

https://codesandbox.io/s/snackbar-accessibility-s58hj?file=/App.js

Context 🔦

We are trying to release a product that needs to be accessible and will not be able to release the product if this issue is not resolved. We are in the process of figuring out a work around. Our current solution is to not use the snackbars but to use alerts instead. We still need to do more testing but the alerts seem to function better. We have also done some testing with the Web version of the Material IO snackbar and it seems to function better. We have also tested many Google products that also function correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitya11ycomponent: snackbarThis is the name of the generic UI component, not the React module!docsImprovements or additions to the documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions