Repository navigation
fix(a11y): make the UI behind full-window overlays inert - #366
Merged
Hakanbaban53 merged 2 commits intoNov 19, 2026
Merged
Conversation
The main UI, Flow and the file browser open as full-window overlays, and so does the file picker, but the covered UI stayed focusable: focus stayed on the button that opened the overlay, and Tab reached hidden controls (14 of 40 presses with the file browser open). A small service now makes everything behind the top overlay inert, moves focus into the overlay, and returns it when the overlay closes. Overlays can stack, so anything opened after the top one, and live regions, stay reachable.
Collaborator
|
I tested this myself, and can confirm the issue was reproducible. Pressing Tab could navigate to elements behind the overlay. With your changes, this works correctly now, and the background is no longer accessible. Looks good to me! Thanks for fixing this! |
Hakanbaban53
approved these changes
Nov 19, 2026
Hakanbaban53
pushed a commit
that referenced
this pull request
Nov 25, 2026
Findings from re-auditing master with axe (#354): - Names that did not contain the visible text, which breaks speech input: the add-remote menu items (the app menu had this fixed in #355), the overview header's backend switch, the remote detail action pills and the Rclone Flags reset button. They are now named by their text; the longer wording stays as the tooltip. The backend switch's logo is decorative, and its unused aria string is removed. - The remote config sidebar put aria-selected on navigation list items; the current step or profile is aria-current instead. - About listed its pages as tabs, with a second tab list and dividers inside the first. They open sub-pages, so they are plain buttons. - The general and Quick Run overviews added role="main" inside the workspace shell's <main>, so the page had two. - The file browser as an overlay or picker had no main landmark: since #366 everything behind it is inert, so it is always the page's main. - Remote card names were h4 under the h2 overview title; now h3.
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.
Follow-up from #354 (the "file browser overlay as a proper modal" item).
Problem
The main UI, Flow and the file browser open as full-window CDK overlays when they aren't the default view, and so does the file picker. The UI underneath stayed live:
Measured in the headless web UI on master: with the file browser open, focus stayed on the hidden "Local" button, and 14 of 40 Tab presses landed in the covered UI. After closing, focus ended up on an unrelated "Mount" tab.
Fix
CoveringOverlayServicekeeps a stack of the open full-window overlays:inert. That's the app shell plus any earlier overlays, for example the dialog that opened the file picker.aria-live, such as the CDK announcer) are never made inert, so announcements still get through.inertthat it set itself.BaseSlideOverlayService(main UI, Flow) andNautilusService(file browser, picker) callcover()after attaching anduncover()when closing.I kept it to
inertand focus handling rather thanrole="dialog". These overlays are workspace switches, not dialogs, apart from the picker.Tests
covering-overlay.service.spec.ts): inert and focus on open and close, focus the overlay already placed, stacking (only the top overlay and later ones stay live), a workspace replacing another, live regions, and pre-existinginert. TheBaseSlideOverlayServicespec mock gained thehostElementevery realOverlayRefhas.ng buildare clean.