Repository navigation
fix(site/src): keep keyboard focus clear of sticky headers - #32190
Merged
Merged
Conversation
Collaborator
Author
|
I'm unsure how much value the stories add, but they do capture and test this behavior, so I'm open to suggestions on whether to keep them or ditch them! EDIT: I'm ditching them. they aren't valuable enough to justify the complexity of the test |
aqandrew
approved these changes
Nov 13, 2026
aqandrew
left a comment
Collaborator
There was a problem hiding this comment.
I'm a bit confused by the before/after screenshots since they all show the same UI surface (deleted DashboardLayout/FocusClearOfNavbar story), but the code lgtm!
jeremyruppel
temporarily deployed
to
docs-preview
November 13, 2026 20:26 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Keyboard focus could land on elements hidden behind the dashboard's sticky chrome (WCAG 2.4.11 Focus Not Obscured). When the browser scrolls a focused element into view, it ignored the sticky
Navbarat the top and theDeploymentBannerat the bottom, as well as the sticky header inside the notifications inbox.site/src/index.css:scroll-paddingonhtmlthat matches the Navbar (h-18) and DeploymentBanner (h-9) heights. Focus scrolling then keeps elements clear of both bars on every dashboard page.InboxPopover.tsx:scroll-pt-15on the inbox scroll viewport, so focused notifications stay clear of its sticky header.Closes DEQ-62
Closes DEQ-332
Closes DEQ-337
Closes DEQ-371
Closes DEQ-424
Closes DEQ-436
Closes DEQ-437
Closes DEQ-441
Closes DEQ-461
Closes DEQ-519
Review findings dropped
scroll-pb-9applies even when the DeploymentBanner is hidden. This is harmless: it only adds a small margin at the bottom when the page scrolls to a focused element.Grouping and decision log
htmlscroll-padding. DEQ-436 lives in the inbox's own scroll container, which needs its own padding.scroll-paddingover per-page offsets orscroll-marginon focusable elements because it fixes every dashboard page from one place.[data-radix-scroll-area-viewport]), and would only catch deletion of the CSS, not drift in bar heights. They were removed as low value for a two-line CSS fix. The before/after screenshots on each ticket record the verification../scripts/develop.shbuild at 1280×720 by pressing Shift+Tab from the bottom of the page, the same way the reports reproduce it. With the fix reverted, the focused element ended up at y=0 under the Navbar on the users table, notification settings and deployment left nav, and under the header in the notifications inbox. With the fix, the same element lands fully in view. The other six pages could not be reproduced locally (no groups, workspaces or AI gateway sessions, and an unlicensed audit log), but they render in the same dashboard layout as the users page.🤖 Generated by Coder Agents on behalf of @jeremyruppel.