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

            Marc Dacanay made changes -
            Labels Original: 2.4.3 Accessibility Level-A WCAG21 ax-at-user ax-bug ax-desktop ax-high-priority ax-jiradc-arj ax-jiradc-arj-vpat2024 ax-jiradc-vpat ax-jiradc-vpat-AccessibilityAssesmentRoadmaps ax-jiradc-vpat-accessibilityassessmentroadmaps ax-jiradc-vpat-pg03 ax-qa New: 2.4.3 Accessibility Level-A WCAG21 ax-at-user ax-bug ax-desktop ax-high-priority ax-jiradc-arj ax-jiradc-arj-vpat2024 ax-jiradc-vpat ax-jiradc-vpat-AccessibilityAssesmentRoadmaps ax-jiradc-vpat-accessibilityassessmentroadmaps ax-jiradc-vpat-pg03 ax-qa ril
            Marc Dacanay made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 963675 ]
            Sylwia Mikołajczuk made changes -
            Priority Original: High [ 2 ] New: Medium [ 3 ]
            Stasiu made changes -
            Introduced in Version Original: 9.12 New: 8.2
            Affects Version/s New: 8.20.30 [ 106364 ]
            Affects Version/s New: 9.4.17 [ 106909 ]
            Sylwia Mikołajczuk made changes -
            Labels Original: 2.4.3 Accessibility Level-A WCAG21 ax-at-user ax-bug ax-desktop ax-high-priority ax-jiradc-vpat ax-jiradc-vpat-AccessibilityAssesmentRoadmaps ax-jiradc-vpat-accessibilityassessmentroadmaps ax-jiradc-vpat-pg03 ax-qa New: 2.4.3 Accessibility Level-A WCAG21 ax-at-user ax-bug ax-desktop ax-high-priority ax-jiradc-arj ax-jiradc-arj-vpat2024 ax-jiradc-vpat ax-jiradc-vpat-AccessibilityAssesmentRoadmaps ax-jiradc-vpat-accessibilityassessmentroadmaps ax-jiradc-vpat-pg03 ax-qa
            Stasiu made changes -
            Component/s Original: Accessibility [ 62491 ]
            Component/s Original: (Advanced Roadmaps) Other [ 73719 ]
            Component/s New: (Advanced Roadmaps) Accessibility [ 74392 ]
            Stasiu made changes -
            Status Original: Needs Triage [ 10030 ] New: Ready for Development [ 10049 ]
            Cynthia Singh made changes -
            Priority Original: Low [ 4 ] New: High [ 2 ]
            Sylwia Mikołajczuk made changes -
            Labels Original: 2.4.3 Accessibility Level-A WCAG21 ax-at-user ax-bug ax-desktop ax-high-priority ax-jiradc-vpat ax-jiradc-vpat-AccessibilityAssesmentRoadmaps ax-jiradc-vpat-pg03 ax-qa New: 2.4.3 Accessibility Level-A WCAG21 ax-at-user ax-bug ax-desktop ax-high-priority ax-jiradc-vpat ax-jiradc-vpat-AccessibilityAssesmentRoadmaps ax-jiradc-vpat-accessibilityassessmentroadmaps ax-jiradc-vpat-pg03 ax-qa
            ssuryavanshi (Inactive) made changes -
            Component/s New: (Advanced Roadmaps) Other [ 73719 ]

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

                Created:
                Updated: