t3code
t3code copied to clipboard
[Bug]: Screen readers read an empty line under the sidebar toggle at the end of every page
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Start NVDA on Windows and open T3 Code (desktop app or web).
- Open any thread, with no toast showing.
- In browse mode, press Control+End, then press Up Arrow to read the last lines of the page.
Expected behavior
The last lines are "Toggle main sidebar" followed by the "Notifications" region, with nothing empty between them.
Actual behavior
NVDA reads an empty line between them, announced only as "clickable":
Control+End out of edit out of section blank
Up Arrow clickable Notifications region clickable
Up Arrow out of region clickable
Up Arrow clickable toggle button pressed Toggle main sidebar
The empty line is the anchored toast viewport, the one that holds small toasts shown next to the button that raised them, such as "Failed to copy". It is mounted on every page even when it has no toasts. #31719 removed its second "Notifications" landmark, but the empty element is still read:
- Base UI makes the viewport focusable (
tabIndex={-1}) and gives it anonClick. React adds a nativeonclickto any element with anonClickprop. - React also attaches its event listeners to the portal's container
div. - Chromium keeps empty focusable or clickable
divs in the accessibility tree, so NVDA browse mode shows them as a line.
Impact
Cosmetic issue
Version or commit
main @ ecb295516f
Environment
Windows 11, NVDA, T3 Code web client in Microsoft Edge. The desktop app renders the same web UI.