GPII/prefsEditors — pull request #63 by chrispetsos (2014-05-22 12:44:45+00:00)
Title: GPII-727: Made closing token creation dialog accessible.

Link to JIRA: http://issues.gpii.net/browse/GPII-727

Well, it looks like the jQuery UI dialog lacks certain accessibility features. Specifically, it does not seem to honour tabIndex attributes and key navigation techniques. A google search with "jquery ui dialog tabindex" will give some clues on these issues. The bottom line is that there was no direct way of letting the "got it" button take the focus and at the same time allowing the screen reader to read the dialog contents.
So, in order to overcome this i did the following:
1) Set a descriptive aria-label to the "got it" button for the screen reader to read.
2) Catching the Enter key on dialog to trigger a click on "got it".
This way the screen reader will read "Press Enter to close this dialog" at the end of the dialog text and hitting Enter will close the dialog as if "got it" was pressed.

Will need some feedback from the Ux team about this proposed solution. Once this workaround is accepted, i'll request translations for the texts.