-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
9.5.1
-
Severity 3 - Minor
-
Issue Summary
Keyboard focus does not return to the triggering element of the "Edit pull request" modal dialog.
Steps to Reproduce
- Open the "Home" page.
- Activate any repository link from the table.
- Now activate Pull request link from left navigation
- Activate any link from “Summary” column of data table.
- Navigate and activate “Show more pull request actions” > "Edit" buttons > a modal appears.
- Close the dialog using the “Cancel" button and try to navigate further.
- Observe that the focus moves to the beginning of the page.
Screen Recording
Screen Recording 2025-03-04 at 2.52.15 PM.mov
Actual Results
On closing the "Edit pull request" modal dialog (that becomes available on activating the “Show more pull request actions” > "Edit" buttons buttons in the main content area) with the help of “Cancel" button, the programmatic focus does not return to the triggering element. Instead, the focus moves to the beginning of the page.
This required screen reader users and keyboard-only users to tab-pass the content on the page before they could interact with the content after the triggering element.
Expected Results
The programmatic focus of users should be set on the parent triggering element of the dialog such as the “Show more pull request actions” button as soon as the "Edit pull request" modal dialog is closed.
Set the keyboard focus to the triggering element of the modal dialog using the JavaScript .focus().
For information on creating accessible modal dialog refer !https://www.w3.org/favicon.ico!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 Sonoma 14.7
Chrome - Version 131.0.6778.86 (Official Build) (arm64)
Firefox- Version 134.0 (64-bit)
Safari- Version 18.1.1 (20619.2.8.11.12)
JAWS- Version 2023
NVDA- Version 2021.2
Voiceover - Version Latest