For you | Recommendation card: Keyboard focus does not return to the triggering element of modal dialog

XMLWordPrintable

    • Severity 3 - Minor
    • Accessibility

      Issue Summary

      Focus does not return to the triggering element after closing the "Why am I seeing this?" dialog.

      Steps to Reproduce

      1. Open the Jira Cloud homepage.
      2. Navigate to Confluence Recommendation card located in the upper-right section of the page.
      3. Using a screen reader, navigate to the "More actions" button and activate it.
      4. Select the "Why am I seeing this?" option and activate it -> a dialog appears.
      5. Close the dialog by activating the "Ok" button.
      6. Observe that focus moves inappropriately to the begining of the page.

      Screen Recording

      https://www.loom.com/share/abdb6cc13bdb431f86710629d24b78c6

      Actual Results

      Upon closing the "Why am I seeing this?" dialog, the programmatic focus does not return to the triggering element. Initially, focus is lost, and the screen reader (JAWS) announces the dialog's heading. Subsequently, when the Tab key is pressed, focus jumps to the "Skip to: Top bar" link rather than returning to the triggering "More actions" button.

      This requires screen reader users and keyboard-only users to tab past the content on the page before they can interact with the content after the triggering element.

      Expected Results

      The programmatic focus of users should be set on the triggering element of the dialog as soon as the dialog is closed.

      In this scenario, after closing the "Why am I seeing this?" dialog, focus should return to the triggering "More actions" button.

      Set the keyboard focus to the triggering element of the dialog using the JavaScript .focus().

      For more information, please refer to the following link: Modal Dialog Example

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

      Environment

      MacBook Pro (16 inch, 2021)
      macOs 26.5
      Windows - 11 pro
      Chrome - Version 148.0.7778.97 (Official Build) (arm64)
      Safari - Version 26.5 (21624.2.5.11.4)
      JAWS - Version 2026
      NVDA - Version 2024.4.2.35031
      Voiceover - Version Latest

              Assignee:
              Pranavi Parasu
              Reporter:
              Anusooya .
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: