Repository navigation
fix(site/src/modules/dashboard/Navbar): own admin settings menu items directly by the menu - #31635
Merged
Merged
Conversation
… 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.
jeremyruppel
marked this pull request as ready for review
November 2, 2026 16:28
bartekgatzcoder
approved these changes
Nov 2, 2026
bartekgatzcoder
left a comment
Collaborator
There was a problem hiding this comment.
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.
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.
The desktop "Admin settings" dropdown wrapped its menu items in a
<nav>. That put anavigationlandmark betweenrole="menu"and everyrole="menuitem", so NVDA lost the menu context. axe also reportedaria-required-parenton each item andaria-required-childrenon 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 ofNavbarView/ForAdminwith the menu open are byte-identical. The existingNavbarViewForAdmin,ForAuditor, andForOrgAdminstories already capture the open menu, andDashboardLayout.test.tsxalready 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
Grouping and decision log
aria-required-parenthas 13 eligible tickets with two root causes.InboxItem's oldrole="menuitem". fix(site/src/modules/notifications): expose inbox notifications as a list #31602 already fixed that onmain, so they went to a human to close.<nav>instead of addingrole="none"to it. A landmark inside a menu has no meaning, and the wrapper had no styles or other purpose.MobileMenurenders the sameAdminSettingsItemsinside aCollapsibleContentdivwith no role. It does not have this problem.NavbarViewForAdmin,ForAuditor, andForOrgAdminstories with the menu open.main: 7, 1, and 2aria-required-parentviolations, plus 1aria-required-childrenviolation in each story.aria-hidden-focusresult on#storybook-root(Radix modal hiding) appears the same on both.frontend-review,frontend-deep-review,frontend-accessibility) found nothing.🤖 Generated by Coder Agents on behalf of @jeremyruppel.