Repository navigation
fix(site/src): make text-only tooltip triggers keyboard focusable - #30403
Merged
Merged
Conversation
Several tooltips used non-focusable triggers (div, span, bare svg), so keyboard and screen reader users could never open them or hear their content. Render those triggers as native buttons so Radix exposes the tooltip via aria-describedby on focus. Covers the deployment banner stats, notification delivery method icons, and the AI Gateway threads info, session summary info, and token usage badges.
aqandrew
approved these changes
Oct 8, 2026
aqandrew
left a comment
Collaborator
There was a problem hiding this comment.
Very nice! Just 2 small non-blocking nits about how classnames are written + a focus ring that looks off
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.
Several tooltips used non-focusable triggers (
div,span, baresvg), so keyboard and screen reader users could never open them or hear their content. Radix only links tooltip content to its trigger viaaria-describedbywhile open, and it opens on hover or focus. These triggers are now native<button type="button">elements with a focus ring, following the existingNetworkCallBadgesand #30342 pattern.Addresses the text-only tooltips from the Deque audit (
custom-tooltiprule, WCAG 4.1.2):DEQ-393 (
+N moreroles) was already fixed by #30342. The tooltips in DEQ-287, DEQ-473 and DEQ-378 that contain links need a popover/toggletip pattern and will follow in a separate PR.Before / after (keyboard Tab)
Implementation notes and verification
aria-label, so its visible counts stay in the accessible name (WCAG 2.5.3 Label in Name). The full breakdown is exposed through the tooltip description.mainexactly. Converted triggers are 16px tall (was 12 to 14px) with the same vertical center, matching the existing Active Connections buttons.aria-describedbyresolves to the tooltip text.DeploymentBannerView.test.tsx. It fails onmainand passes here.