Repository navigation
fix(contexts): give the focus back to the application after editing it - #3412
Open
rubenvdlinde wants to merge 1 commit into
Open
rubenvdlinde wants to merge 1 commit into
rubenvdlinde wants to merge 1 commit into
Conversation
"Edit application" closes the actions menu of the application without returning the focus, because a dialog opens from it, and the dialog then has nothing to give the focus back to when it closes: the menu item is gone. Keyboard users ended up on the document after Save or Cancel and had to start again at the top. The dialog now says when it closes, and the navigation entry of that application focuses its actions button. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ruben van der Linde <ruben@conduction.nl>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"Edit application" opens from the actions menu of an application in the navigation. The menu closes when the dialog opens, so when the dialog closes, after Save or Cancel, there is nothing to give the focus back to. Keyboard and screen reader users end up on the document and have to start again from the top of the page.
The dialog now tells when it closes, and the navigation entry of that application puts the focus back on its actions button.
Found by @zavalit while testing #3215 with the keyboard.
How it was tested
New
cypress/component/NavigationContextItem.cy.js: once the edit dialog of an application closes, the focus is on that application's actions button. The test fails without the change.🖼️ Screenshots
None, no visible change.
🏁 Checklist
/backport to stableX.X🤖 AI (if applicable)