Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-67207-master -
-
Internationals - 3.8 Alpha
Description
The Grader interface is essentially a full-page modal and therefore it should lock focus as per the WAI ARIA guidelines:
https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html
This issue adds a new implementation, which is not specific to any other module and works on any arbitrary Node, to lock focus.
It supports stacking (modals in modals in modals), and unstacking. It also correctly handles looping of focus within the region.
It follows the guidelines in the guidelines.
I've also taken the liberty of addressing the focus on close aspect of the specification which is another related and very important part of the specification.
I have not added "Escape" handling (Escape key should close top-most modal). That's a whole other thing to solve.
Attachments
Issue Links
- caused a regression
-
MDL-67285 Filepicker does not work in the modal forms - unable to click on input texts
-
- Closed
-
- has a non-specific relationship to
-
MDL-66383 Accessibility audit
-
- Closed
-
- Testing discovered
-
MDL-67235 Custom "Activate" event should use keyUp, not keyDown listener
-
- Open
-
- will help resolve
-
MDL-67365 Accessibility issue: Failed to enter new event pop up on a screen reader
-
- Closed
-