Issue: when navigating a site with only the keyboard, tabbing to a <google-translate> link and hitting enter does not move the focus to the disclaimer modal. There is no way to "accept" the disclaimer terms using only the keyboard.

Desired behavior: when the disclaimer modal opens, the focus moves to the "accept" link. Choosing "accept" moves the focus to the newly-loaded translator gadget. Choosing "do not accept" or esc moves the focus back to the original <google-translate> link.

I'm working on a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jenna.tollerson created an issue. See original summary.

jenna.tollerson’s picture

Status: Active » Needs review
FileSize
1.67 KB

Patch attached.

jenna.tollerson’s picture

New patch. This switches out the deprecated mutation event DOMNodeInserted for jQuery.DOMNodeAppear. It does mean you have to add jQuery.DOMNodeAppear as a library in your installation, and have Libraries module installed.

If you have jQuery 1.7+, use the original. If you are using a older version, use my branch, for-old-jquery. Put the files in sites/*/libraries/jquery.domnodeappear/

jenna.tollerson’s picture

Status: Needs review » Fixed
jenna.tollerson’s picture

Status: Fixed » Closed (fixed)