[material-ui][Alert] Potential accessibility issues #40198
Labels
accessibility
a11y
component: alert
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
package: material-ui
Specific to @mui/material
waiting for 👍
Waiting for upvotes
Milestone
Hi,
I was looking at the Alert component and I noticed it added an ARIA alert role to the component. This component may potentially not exist on page load and might be displayed dynamically.
In your accessibility notes for the alert component you say:
The content is not always automatically announced by some screen readers though. Scott O'Hara talks about this in a post called are we live.
Severity of Alerts
Some people might not consider a success message an alert, and depending on context, info and warning might not be either. You are appending role="alert" to the component for all variants. I really think this should be revisited. At the very least mentioned in the documentation. I don't think pointing to the WAI-ARIA Authoring Practices helps here.
Thanks.
The text was updated successfully, but these errors were encountered: