Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #2
jenna.tollersonPatch attached.
Comment #3
jenna.tollersonNew 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/
Comment #5
jenna.tollersonComment #6
jenna.tollerson