question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Checkbox] a11y issue Safari VoiceOver

See original GitHub issue

Hey, Safari reads the Checkbox label in a weird way by appending “and one more item” to the checkbox label.

For example, if a label is “Gilad Gray”, Safari will read it “Gilad Grayand one more item” which sounds really weird to a user.

  • 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 😯

Provided in the summary.

Expected Behavior 🤔

The label of the checkbox is read as it is without any additional text.

Please compare the first checkbox and others in the example below.

Steps to Reproduce 🕹

https://codesandbox.io/s/mui-checkbox-a11y-zq7u9

Steps:

  1. Open Safari
  2. Cmd + Fn + F5
  3. Tab through checkboxes
  4. Listen/Read the VO announcements

Context 🔦

Were able to fix it by applying aria-disabled={undefined}. Maybe the issue is here: https://github.com/mui-org/material-ui/blob/0c7d8cea71d5e3f34f63f997ea329edba80e47ca/packages/material-ui/src/ButtonBase/ButtonBase.js#L276

I don’t think aria-disabled should be applicable to any component except button

Your Environment 🌎

All packages versions are in the sandbox MUI v5 Safari 14.0 (15610.1.28.1.9, 15610)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, May 7, 2021
1reaction
eps1loncommented, Mar 29, 2021

I think aria-disabled is never a required attribute so fixing it in ButtonBase seems like the better solution.

The diff alone for SwitchBase looks weird though. How woul aria-disabled be applied?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Checkbox] a11y issue Safari VoiceOver #25531 - GitHub
Hey, Safari reads the Checkbox label in a weird way by appending "and one more item" to the checkbox label.
Read more >
Safari + voiceover not reading labels with nested elements ...
Voiceover on Safari on iOS works just fine. I'm guessing you're on a Mac? I hear "text here" for the checkbox label.
Read more >
Use the Accessibility Shortcuts panel on Mac - Apple Support
The Accessibility Shortcuts panel offers shortcuts to quickly turn on or turn off common accessibility features such as Zoom, VoiceOver, ...
Read more >
Accessible validation of checkbox and radiobutton groups
VoiceOver/Safari: Legend and label are read twice, error is not read. VoiceOver/Chrome: Only the label is read, not the legend or the error....
Read more >
labels with different browsers and voiceover - CodePen
Chrome, VoiceOver only reads text in label once and does not focus label separately ; Safari, VoiceOver reads text from label twice and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found