-
Bug
-
Resolution: Fixed
-
Minor
-
4.5
The mobile focus lock code in lob/amd/src/local/aria/focuslock.js is intended to follow the WAI/ARIA pattern, which is linked in the source code:.
https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
However, it is not quite right. You can reproduce as follows:
- Go anywhere that has a Tiny editor (e.g. go to forum page and click Add discussion topic)
- Click the 'Create link' icon and wait for the modal popup to appear
- Press Tab a bunch of times until focus goes to the last item in dialog ('Create link' button)
- Press Tab one more time
- EXPECTED: Focus should go to the first item in dialog
- ACTUAL: It goes to the browser UI, and you have to tab through a bunch more times to get to the first thing in dialog.
After discussion with Andrew Lyons, we don't think this is intentional, so it should be fixed.
I am not sure whether it is the same cause, but there is also an issue relating to nested modals:
- Go anywhere that has a Tiny editor (e.g. go to forum page and click Add discussion topic)
- Click the 'Insert image' icon and wait for the modal popup to appear
- Press Tab until you get to the 'Browse repositories' button.
- Press Return to open the 'Browse repositories' modal.
- Press Escape to close it again
- EXPECTED: Focus should go bcak to the 'Browse repositories' button or else somewhere else in the 'Insert image' popup
- ACTUAL: It goes to the browser UI as above.
It is possible this one could be specific to the 'Insert image' popup so might be unrelated, I don't know yet, but if it is similar I'll try to fix that too.