-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
accessibilitya11ya11yscope: focus trapChanges related to the focus trap.Changes related to the focus trap.
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
Currently TrapFocus component is focusing the modal root element (paper) when we are looping out the controls in the focus.
This is a problem for some kind of dialogs, for example, date-picker. We should avoid focusing on the root element of date picker. Focusing on the root element will only confuse the screenreader because there is no label on the date picker itself.
Anyway, that is not recommended to make "big" elements focusable, because it is not clear which element is focused. For example, this is the default behavior of angular material.
It would be nice to have an option like disableRootFocus or something like that that prevents focusing the root element in the dialog.
Examples 🌈
Motivation 🔦
From wia-aria modal dialog example guide
- The larger a focusable element is, the more difficult it is to visually identify the location of focus, especially for users with a narrow field of view.
- The dialog has a visual border, so creating a clear visual indicator of focus when the entire dialog has focus is not very feasible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
accessibilitya11ya11yscope: focus trapChanges related to the focus trap.Changes related to the focus trap.

