Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

Accessibility of modal dialogue boxes #1774

Open misslivirose opened 5 years ago

misslivirose commented 5 years ago

Description When you click a link which opens a dialog (such as "sign in", or "report issues" for instance), the dialog is created correctly, but focus must shift to the dialog's "close" button, otherwise the screen reader user does not know the dialog appeared.

When dialog is dismissed, focus should return to the button which opened it.

Reported via Hubs email

┆Issue is synchronized with this Jira Task

gfodor commented 4 years ago

I made an attempt on this, but had to remove the autofocus behavior. The problem is that when you are holding spacebar for pause mode, and click "pin", you get the sign-in dialog. Then, when you release spacebar, it triggers the close button, closing the modal :(