-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Divider] Component is announced by screen readers #34248
Comments
@paulschreiber Why? As far as I know, an We might want to add an accessibility h2 for the divider component https://mui.com/material-ui/react-divider/. |
@oliviertassinari You are correct here. The review flagged some dividers as aesthetic, which should be suppressed by the screen reader, but it's fine for the default behaviour for Divider to be that it is announced. |
+1 on this. @paulschreiber I am closing the PR that changes the behavior of the Would you like to open a new PR that will add an accessibility section for this component explaining when the |
I would love to see an "Accessibility" section for this component in the docs, explaining when a divider can/should be considered to be decorative. E.g. when preceded or followed by a heading which performs a similar but more appropriate semantic purpose. Unfortunately, I don't have the cycles to write such a summary, nor the familiarity with this particular UI library that would qualify me to do so. As a representative of an accessibility agency engaged to evaluate a product maintained by @paulschreiber, that product contained some dividers that we indicated should be considered decorative, and hence use Thank you for your consideration of the nuances of this component usage, nevertheless. Attention to accessibility is always appreciated. |
Duplicates
Latest version
Current behavior 😯
Divider elements are announced by screen readers.
The HTML created looks like this:
Expected behavior 🤔
Divider elements are not announced by screen readers.
The HTML created looks like this:
Steps to reproduce 🕹
Context 🔦
This was flagged during an accessibility review of our application.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: