Repository navigation
Conversation
The backdrop click handler tested the click against the responsive bin around the dialog, which fills the window, so every click counted as inside the dialog and none closed Settings. Test against the dialog panel, whose margin is the area the backdrop shows.
1 of 5 tasks
Contributor
|
I'm closing this, above/below the settings page it won't close but left/right of it, it definitely closes screenrecording-2026-10-25_13-44-08.mp4 |
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.
Description
Clicking outside the Settings panel did not close it. The backdrop click handler tested the click against the responsive bin that wraps the dialog. That bin fills the window and the dialog's margin lies inside it, so every click counted as inside the dialog and
close_settingsnever ran. The Compress and other dialogs use the shared modal helper, which tests the dialog itself, and close as expected.The handler now tests the click against the
settings-dialogpanel inside the bin, so the margin around it closes Settings and clicks on the panel still do not.This covers one item of the keyboard and focus list in #1859, "Clicking outside Settings doesn't close it". The other items there are separate changes.
Visual evidence
N/A: no layout change. The difference is that a click on the backdrop closes Settings.
How to test
Expected result: Settings closes and focus returns to the file list. A click inside the panel leaves it open. Before this change nothing happened.
Covered by the QA scenario
settings-closes-on-an-outside-click, which clicks inside the panel (it stays open) and then outside (it closes), and fails on the old code at the outside click. The Settings tests and scenarios, anddismissed-overlays-return-focus, pass.Related issue
Part of #1859