mui / mui/material-ui

Modal - Issue with chromevox and current focus

Open
#36,682 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accessibility scope: modal
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Steps to reproduce 🕹

Video Examples:

https://user-images.githubusercontent.com/12486130/228531170-078c7b82-9ba8-49e8-b736-0caab46c58b5.mp4

https://user-images.githubusercontent.com/12486130/228531203-a9df3a3c-5274-421b-90b4-bf92a5ff2206.mp4

Link to live example: MUI React Dialog Page

Steps:

  1. Go to any example on MUI which inherits from Modal: Dialog, Drawers
  2. Open Chromevox screen reader for ChromeOS. The shortcut is ctrl + alt + z
  3. Interact with component and see focus keeps getting moved outside the component
Current behavior 😯

Interact with component and see focus keeps jumping outside the dialog/drawer.

I removed the -1 tabindex from the dialog container, and placed it on the element with the dialog role instead, which seems to have helped, but that might break the component for others if they are focusing on the outer container.

Expected behavior 🤔

Focus should not be jumping outside the dialog.

Context 🔦

I'm not 100% sure if this is the same issue mentioned on Issue #23827

Any of the MUI Dialogs/Drawers are giving some focus issues when using the chromevox screen reader on ChromeOS.

Your environment 🌎
npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior on the MUI React Dialog and Drawer examples with ChromeVox on ChromeOS. Compare focus behavior in the Modal-based components, including the reported tabindex change, and review Issue #23827 for related context. Done means focus no longer jumps outside the dialog or drawer while interacting with it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
accessibility, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.