[Bug]: Screen readers can't find the built-in browser page when the right panel opens as a sheet #45829
Note
🤖 Claude Opus 5.5 posting on behalf of nibarAhmed
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- On Windows, run NVDA and open the T3 Code desktop app in a window 980px wide or narrower, so the right panel opens as a sheet over the chat instead of beside it.
- Open a Browser tab in the right panel and load any page.
- In NVDA browse mode, press M to jump to the next frame, or arrow through the panel.
Expected behavior#
NVDA finds the page as a frame inside the workspace panel and reads it, the same as in a wider window.
Actual behavior#
NVDA says "no next frame" and never reads the page. In a window wider than 980px, the same page is found. To the user it looks random ("sometimes it works"), because it depends on the window width.
The narrow-window panel is a modal Base UI Sheet (apps/web/src/components/RightPanelSheet.tsx). While it is open, Base UI's focus manager sets aria-hidden="true" on everything outside the sheet and its portals. The page is not inside the sheet. HostedBrowserWebview draws the <webview> in a fixed layer under #root, and the BrowserSurfaceSlot in the panel is an empty placeholder that the layer is positioned over. The page therefore sits under an aria-hidden ancestor.
Suggested fix, tested with NVDA in a local desktop build: the slot that is currently showing a tab sets aria-owns to the webview's wrapper, so the page becomes part of the panel in the accessibility tree. With that change, M in the sheet reads "frame Speech test heading heading level 1". The wide layout, switching tabs and the floating preview still work. Only the slot that owns and is showing the tab claims it, because the panel and the floating preview can both have a slot for the same tab.
This affects only the desktop app. Clients that can't render the tab natively show a server-drawn canvas instead, which is tracked in #25271.
Impact#
Major degradation or frequent failure
Version or commit#
main @ 0c0b96545ab
Environment#
Windows 11, T3 Code desktop, NVDA
Workaround#
Widen the window past 980px or maximize the right panel, so the panel shows inline instead of as a sheet.
tanstack-source added labelsbug
juliusmarminge closed this
Sign in to join this conversation.