Issue Summary

      Within the delete plan modal on activating the cancel button focus moves inappropriately to the top of the page.

      Steps to Reproduce

      1. Open the "Accessibility Assessment - Roadmaps" page.
      2. Navigate to the settings button and activate it.
      3. Verify a pop-up menu appears and then activate the delete button from the menu.
      4. Verify delete plan modal gets added on the page.
      5. Now go to the cancel button and activate it.
      6. Verify that the focus moves to the top of the page.

      Screen Recording

      Screen Recording 2024-01-30 at 4.12.10 PM.mov

      Actual Results

      Focus moves inappropriately to the top of the page instead of moving on the triggering "delete" button when the user close the modal dialog,
      As a result, keyboard-only and screen reader users will have to navigate the screen content again before accessing the content which is after the triggering button.

      Expected Results

      When the user closes the modal dialog, the keyboard focus should move to the triggering element i.e. "Delete button".

      Ensure that the keyboard focus moves the triggering element when the modal dialogue is closed which can be achieved via 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 (13-inch, 2018)
      macOs Ventura 13.3.1
      Chrome - Version 109.0.5414.119 (Official Build) (64-bit)
      Firefox- Version 92.0 (64-bit)
      Safari- Version 16.4 (18615.1.26.110.1)
      JAWS- Version 2022
      NVDA- Version 2021.2
      Voiceover - Version Latest 

            [JSWSERVER-25595] Accessibility Assessment - Roadmaps: Focus moves inappropriately

              Unassigned Unassigned
              437d33237d7b Astut Pathak (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: