Repository navigation
fix: name the collapsed side nav's Help button for screen readers - #3850
Conversation
|
@kaustubhdgr8 is attempting to deploy a commit to the HyperDX Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 845e4e1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hi @kaustubhdgr8, thanks for the pull request! Before we review code from a first-time contributor, a maintainer vouches for them, and you're not on our list yet. There's nothing else to file and this PR stays open — a maintainer will look at it, usually within a day or two, and vouch for you right here if it's a genuine attempt at the problem. To make that quick, check the PR description has:
More detail in our contributing guide. |
PR Review
1 finding(s): 🔴 0 P0/P1 · 🟡 0 P2 · 🔵 1 P3 No inline comments. 1 P3 folded at the bottom. 🔵 1 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
Deep Review✅ No critical issues found. This is a minimal, correct accessibility fix. The collapsed 🔵 P3 nitpicks (1)
Reviewers (7): correctness, testing, maintainability, kieran-typescript, project-standards, previous-comments, agent-native. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
33cec7f to
845e4e1
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
Follow-up to #3845, as noted in this comment.
With the side nav collapsed to icons, the Help button dropped its label (
{!isCollapsed && <span>Help</span>}), the same gap #3845 fixed for the nav links. Screen readers announced it as "button" with no name, or only as "New updates available" when the What's new sparkle is showing.AppNavHelpMenukeeps the "Help" label when collapsed, inside Mantine'sVisuallyHidden, the same pattern asAppNavLink. No visual change.AppNavHelpMenu.test.tsxfinds the button by role and name in both states; the collapsed case fails onmain.@hyperdx/apppatch.Screenshots or video
No visual change: with the nav collapsed (
isNavCollapsed= true, 1280x720, light theme), screenshots of the rail onmainand on this branch are pixel-identical. What changes is the accessibility tree:main)How to reproduce
Starting point:
yarn app:dev:local+ Connect to Demo Server.On
main:data-testid="help-menu-trigger"): its name is "New updates available", or empty after the Help menu has been opened once.On this branch:
main.How to test on Vercel preview
Preview routes: /search
Steps:
References
Note
Low Risk
Small UI-only accessibility fix with new unit tests; no auth, data, or API behavior changes.
Overview
Fixes an a11y gap in the collapsed side nav: the Help menu trigger no longer loses its name when only the icon is shown. Instead of omitting the label when
isCollapsed, it now renders "Help" via MantineVisuallyHidden, matching the existingAppNavLinkpattern—no visible UI change.Adds
AppNavHelpMenu.test.tsxto assert the trigger is findable asbuttonwith name "Help" (expanded and collapsed), including whenHelpSparklecontributes "New updates available". Includes a@hyperdx/apppatch changeset.Reviewed by Cursor Bugbot for commit 845e4e1. Bugbot is set up for automated code reviews on this repo. Configure here.