Return to tab position when exiting dialog opened from contextual link

Created on 12 October 2017, over 6 years ago
Updated 20 January 2023, over 1 year ago

Problem/Motivation

When a link is used to open an ajax dialog when the dialog is closed the jQuery dialog that core uses will return the focus to the item that had focus before the dialog was opened.

This does not work for contextual links. When a contextual link is used to open an ajax dialog when the dialog is closed(not a form save & page reload) the contextual link will not be visible and focus will not be returned.

This was discovered in #2784569: Settings Tray Accessibility: Improve tabbing β†’ for the off-canvas dialog but it affects all core dialogs.

Proposed resolution

When a dialog is closed that was opened from a contextual link the contextual lin button for the context

Remaining tasks

  1. Implement fix

User interface changes

Contextual button will be focused after the dialog is closed.

API changes

None

Data model changes

none

Original Summary

from #2784569: Settings Tray Accessibility: Improve tabbing β†’ comment 9 point 7 of @Wim Leers review

However, when I close the Settings Tray dialog, my previous location is lost/forgotten β€” I'm back at the root of the page, and have to tab back all the way to where I was before I triggered the "Quick Edit" contextual link.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
ContextualΒ  β†’

Last updated 23 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024