Asset view: Keyboard focus does not return to the triggering element of modal dialog

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When the users activate the "Close" button in the modal dialog, the focus moves to the top of the page inappropriately instead of moving to the triggering element.

      Steps to Reproduce

      1. Open the Asset View page
      2. Navigate to mentioned buttons and activate it.
      3. Observe the Modal dialogs appears
      4. Navigate to "Close" button in the Modal dialogs and activate it.
      5. Observe the keyboard focus not return to triggering element.

      Screenshot

      keyboaed focus.mov

      Actual result

      When users activate the "Close" button in the "Attachment", "Comment", "Edit", and  "Business services" and so on Modal dialogs, the programmatic focus does not return to the triggering element. Instead focus moves to the top of the page. 

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

      Expected Results

      Ensure that the programmatic focus of users should be set on the triggering element of the modal dialog as soon as dialog is closed. Set the keyboard focus to the triggering element of the dialog using the JavaScript .focus().

      For more information refer this link: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/dialog/ 

      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 Ventura  13.5
      Chrome - Version 115.0.5790.170 (Official Build) (arm64)
      Firefox- Version 112.0. 1
      Safari- Version 16.5 (18615.2.9.11.4)
      JAWS- Version 2023
      NVDA- Version 2023
      Voiceover - Version Latest

        1. keyboaed focus.mov
          27.63 MB
          Pravalika Suragani

              Assignee:
              Unassigned
              Reporter:
              Pravalika Suragani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: