material-components / material-components-web

Modular and customizable Material Design UI components for the web
https://material.io/develop/web
MIT License
17.11k stars 2.15k forks source link

[Snackbar] screenreader leaves out "button" when reading message and action #8140

Open shashu10 opened 10 months ago

shashu10 commented 10 months ago

Bug report

Precondition: voice over is enabled on a MacOS 13.5.1 running the latest Chrome browser. When a snackbar is shown with a message and action, the screenreader reads out " " but it should " button"

Steps to reproduce

  1. Enable voiceover on your computer
  2. Trigger a snackbar with an action
  3. Hear the assertive announcement

Actual behavior

The screenreader reads out " "

Expected behavior

It should " button"

Screenshots

NA

Your Environment:

MacOS 13.5.1 running the latest Chrome browser 117.0.5938.48.

Additional context

NA

Possible solution

Not sure? Maybe the nesting of elements is affecting how the screenreader reads out the element name>