Issue Summary

      When the "Versions" and "Epics" sections are dismissed using the "Close version panel" and "Close epics panel" buttons respectively, the focus moves at the "Toggle swimlane visibility" button rather then moving back to the "Versions" and "Epics" buttons. 

      Steps to Reproduce

      1. Open DC project.
      2. Activate the "Backlog" link from side navigation. 
      3. Activate the "VERSIONS" and "EPICS" buttons. 
      4. Navigate through page using TAB key using the keyboard. 
      5. Navigate through the modal using the down arrow (JAWS/NVDA) and Control+Option+left/right arrow (VoiceOver).
      6. Observe that the these sections are opened. 
      7. Close these sections using the e "Close version panel" and "Close epics panel" buttons. 
      8. Observe that the on closing the sections focus moves at the "Toggle swimlane visibility" button instead of the"Versions" and "Epics"  buttons. 

      Screen Recording

      Screen Recording 2025-01-17 at 4.23.55 PM.mov

      Actual Results

      When the "Versions" and "Epics" sections are dismissed using the "Close version panel" and "Close epics panel" buttons respectively, the focus moves at the "Toggle swimlane visibility" button rather then moving back to the "Versions" and "Epics" buttons. As a result, the screen reader users might feel disoriented. 

      Expected Results

      Make sure that the focus move at the logical element on closing the "Versions" and "Epics" sections. Make sure that the on closing the sections focus moves at the "Versions" and "Epics" buttons. This can be achieved by using the JavaScript focus() method. 

      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 Sonoma Version 14.1

      Chrome - Version 131.0.6778.265 (Official Build) (arm64)

      Firefox- 134.0.1 (64-bit)

      Safari- Version 18.2 (19620.1.16.111.6, 19620)

      JAWS- Version 2023

      NVDA- Version 2023.2

      Voiceover - Version Latest

            [JSWSERVER-26275] Backlog: Focus moves inappropriately

            No work has yet been logged on this issue.

              Unassigned Unassigned
              8b74bced7d61 Shruti Chabukswar
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: