Skip to content

fix(site/src/modules/dashboard/Navbar): own admin settings menu items directly by the menu - #31635

Merged
bartekgatzcoder merged 1 commit into
mainfrom
a11y/aria-required-parent
Nov 2, 2026
Merged

bartekgatzcoder merged 1 commit into
mainfrom
a11y/aria-required-parent

Conversation

@jeremyruppel

Copy link
Copy Markdown
Collaborator

The desktop "Admin settings" dropdown wrapped its menu items in a <nav>. That put a navigation landmark between role="menu" and every role="menuitem", so NVDA lost the menu context. axe also reported aria-required-parent on each item and aria-required-children on the menu. The <nav> is now gone, so the menu owns its items directly.

There is no visual change. The <nav> had no styles, and before and after screenshots of NavbarView/ForAdmin with the menu open are byte-identical. The existing NavbarView ForAdmin, ForAuditor, and ForOrgAdmin stories already capture the open menu, and DashboardLayout.test.tsx already drives Admin settings to menuitem "AI" navigation.

Closes DEQ-42
Closes DEQ-56
Closes DEQ-351
Closes DEQ-412
Closes DEQ-479
Closes DEQ-496
Closes DEQ-587

Ticket UI surface
DEQ-56 Navbar, Admin settings menu: Deployment
DEQ-496 Navbar, Admin settings menu: Organizations
DEQ-412 Navbar, Admin settings menu: AI
DEQ-42 Navbar, Admin settings menu: Audit logs
DEQ-479 Navbar, Admin settings menu: Connection logs
DEQ-587 Navbar, Admin settings menu: AI sessions
DEQ-351 Navbar, Admin settings menu: Healthcheck
Grouping and decision log
  • Batch aria-required-parent has 13 eligible tickets with two root causes.
  • Remove the <nav> instead of adding role="none" to it. A landmark inside a menu has no meaning, and the wrapper had no styles or other purpose.
  • MobileMenu renders the same AdminSettingsItems inside a CollapsibleContent div with no role. It does not have this problem.
  • Verification: axe-core 4.11 ran against the NavbarView ForAdmin, ForAuditor, and ForOrgAdmin stories with the menu open.
    • main: 7, 1, and 2 aria-required-parent violations, plus 1 aria-required-children violation in each story.
    • This branch: 0 of either.
    • A pre-existing aria-hidden-focus result on #storybook-root (Radix modal hiding) appears the same on both.
  • No new test. Vitest has no axe tooling, and FE1 rules out asserting attribute or role presence. Existing tests and stories cover the behavior and the visual state.
  • Self-review (frontend-review, frontend-deep-review, frontend-accessibility) found nothing.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.

… directly by the menu

The Admin settings dropdown wrapped its menu items in a <nav>, putting a
navigation landmark between role="menu" and each role="menuitem". Screen
readers lost the menu context and axe reported aria-required-parent on
every item and aria-required-children on the menu.
@linear-code

linear-code Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

@jeremyruppel
jeremyruppel marked this pull request as ready for review November 2, 2026 16:28

@bartekgatzcoder bartekgatzcoder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the <nav> wrapper lets Radix's role="menu" own every Admin settings menuitem directly, which is the root cause behind all seven tickets. I verified it independently with axe-core 4.11.1 on the open dropdown: main reports 7 aria-required-parent violations on exactly the ticket selectors plus 1 aria-required-children, and this head reports 0. No nits, no follow-ups.

🤖 Generated by Coder Agents on behalf of @bartekgatzcoder.

@bartekgatzcoder
bartekgatzcoder merged commit 9839406 into main Nov 2, 2026
54 of 55 checks passed
@bartekgatzcoder
bartekgatzcoder deleted the a11y/aria-required-parent branch November 2, 2026 20:04
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants