Skip to content

fix(menus): the keys and type-ahead reach a disabled row, which stays inert - #10160

Merged
cixzhang merged 12 commits into
mainfrom
fix/8838-disabled-menu-rows
Nov 8, 2026
Merged

cixzhang merged 12 commits into
mainfrom
fix/8838-disabled-menu-rows

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8838.

User impact

A keyboard or screen-reader user in DropdownMenu, its sub-menus, MoreMenu, ContextMenu or NavHeadingMenu never reaches a disabled row today: ArrowDown, ArrowUp, Home, End and type-ahead skip it. The user does not learn the row exists or why it is unavailable (for example a description such as "Only the owner can delete"). After this fix those keys visit a disabled row like any other row. The row takes focus and is announced as disabled, and Enter, Space or a click on it still does nothing and leaves the menu open. Opening a menu from the keyboard still lands on an enabled row.

Problem and solution fit

  • Why are disabled rows skipped? The menus collect rows with MENU_ITEM_SELECTOR, which excludes [aria-disabled="true"]. useListFocus also skips disabled items itself, and a disabled row renders no tabindex, so it cannot take focus.
  • Why does that harm the task? The user cannot discover an action and its reason, which the WAI-ARIA menu pattern keeps discoverable.
  • Why does it matter? component:DropdownMenu FR17 and DEC-11 require the keys to reach a disabled row and the row to stay inert, in all five menus.

Expected behavior and authority

  • component:DropdownMenu FR17, FR12 and DEC-11: the arrow keys, Home, End, the Page keys and type-ahead visit a disabled row; it takes focus, exposes aria-disabled="true" and stays inert; a keyboard open lands on an enabled row.
  • component:DropdownMenuItem FR7, component:DropdownMenuCheckboxItem FR3, component:DropdownMenuRadioItem FR4, component:DropdownMenuSubMenu FR7, component:ContextMenu FR8, and component:NavHeadingMenu FR5 and FR6 restate it for each row and menu.
  • Specs & Decisions ruled this a defect fix under FR17/DEC-11.

Smallest restoration

  • useListFocus gains one internal option, reachesDisabledItems. With it, the navigation keys pass over no item; focusFirst and focusLast, which an open uses, still land on an enabled item. The public hook and every other list are unchanged, so Toolbar and ButtonGroup keep their own rule.
  • Each Core row (DropdownMenuItem, CheckboxItem, RadioItem, the SubMenu row, NavHeadingMenuItem) composes its own onMouseDown, after the caller's, that cancels a mouse press's focus while the row is disabled. The row now takes focus from the keys, and without this a press would focus and light it (module:DropdownMenu/useMenuPress FR2). useMenuPress and its public return are unchanged.
  • menuItemRoles.ts adds MENU_ROW_SELECTOR (every row). The five menus use it for keyboard focus and type-ahead. Presses keep the enabled-only MENU_ITEM_SELECTOR, so a pointer still never acts on or highlights a disabled row.
  • A disabled DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuSubMenu and NavHeadingMenuItem row now carries tabindex="-1", as an enabled row does.
  • The checkbox and radio row docs, and the DropdownMenu audit's disabled-row state, now say the keys reach a disabled row.
  • The records lose their "implementation gap" sentences and "Disabled rows skipped" current-state lines for this behavior. NavHeadingMenu's "a disabled item changes focusability" line also goes, because the row now keeps tabindex="-1".
  • A pointer open followed by ArrowDown moves to the first row, disabled or not: that is not an open from the keyboard, and FR17 has the arrow keys visit a disabled row as any other row.

Evidence

  • Reproduction before the change (main's source with the flipped tests): 8 of 8 new and flipped cases fail. The keys and type-ahead skip the disabled row, and a disabled row has no tabindex.
  • Result after the change: all of them pass. 1,367 tests pass in DropdownMenu, ContextMenu, NavMenu, MoreMenu, SideNav, TabList, Breadcrumbs, Toolbar, ButtonGroup, TopNav and useListFocus.
  • Representative unchanged path: a keyboard open (Enter, or ArrowDown on the trigger) still lands on the first enabled row; ArrowUp on the trigger still lands on the last enabled row; a sub-menu opened with ArrowRight lands on its first enabled row; hovering a disabled row still moves no focus; Toolbar and ButtonGroup still skip disabled members.
  • Real-browser check (FR17's verification row), passing in Chromium on this head (WebKit runs it in CI): DropdownMenuDisabledRow.a11y.browser.spec.ts on the WithDisabledItems story: a keyboard open lands on Edit; ArrowDown and End reach "Delete (disabled)", exposed to the accessibility tree as a disabled menu item; Enter and Space on it do nothing and leave the menu open; a mouse press on it leaves it unfocused. The DropdownMenu audit's disabled-row state now asserts End lands on the trailing disabled row.
  • Representative unchanged path on this head: 79 behavior cases in the DropdownMenu and ContextMenu Chromium specs pass. MenuPress's touch-slide case fails with this branch's older copy of that spec and passes with main's current copy (13 of 13), the copy CI runs. The visual audit specs need a git checkout; CI runs them.
  • Regression tests: the five skip-asserting tests now assert reach (DropdownMenu typeahead and arrow cases, ContextMenu typeahead and arrow cases, NavHeadingMenu typeahead). New cases cover a disabled sub-menu row the arrows reach and pass; a disabled row that takes focus, has tabindex="-1", does nothing on Enter or Space and leaves the menu open; Home and End; a sub-menu's keyboard open past a disabled first row; and NavHeadingMenu's keys and type-ahead.

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

  • vitest run packages/core/src/DropdownMenu packages/core/src/ContextMenu packages/core/src/NavMenu packages/core/src/MoreMenu packages/core/src/SideNav packages/core/src/TabList packages/core/src/Breadcrumbs packages/core/src/Toolbar packages/core/src/ButtonGroup packages/core/src/hooks/useListFocus.test.tsx packages/core/src/TopNav
  • The same new cases against main's source (red), then this head (green).

Writing rubric results

R1 narration: none added; the edits remove "today" gap sentences, and every remaining sentence is present tense.
R2 research: none in the records.
R3 evidence: unchanged; FR17's verification row already names the keyboard tests these cases fill.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none added; NavHeadingMenu's gap count drops from six to four.

ebd5387 (JSDoc-only follow-up: the checkbox and radio rows' isDisabled JSDoc now matches their docs and behavior): this head's checks are CI-only.

… inert

In DropdownMenu, its sub-menus, MoreMenu, ContextMenu and NavHeadingMenu
the arrow keys, Home, End, the Page keys and type-ahead visit a disabled
row as any other row. The row takes focus (tabindex -1), is announced as
disabled, and Enter, Space or a click on it does nothing and leaves the
menu open. A keyboard open still lands on an enabled row. useListFocus
gains the internal reachesDisabledItems option for this; presses keep
the enabled-row selector (component:DropdownMenu FR17, DEC-11).

Fixes #8838
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 7, 2026 10:00pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 5, 2026
@astracat-bot

astracat-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 7, 2026, 10:42 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 5, 2026
@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec e535e1a

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 443a0ab

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
lab/Comments 328.9 kB (+180 B) · 2.5 kB CSS (0) — — · — · —
lab/CommentThread 322.3 kB (+176 B) · 2.4 kB CSS (0) — — · — · —
DropdownMenu 95.4 kB (+130 B) · 17.1 kB CSS (0) — ✓ · ✓ · ✓
36 more components
Component Size LoC Visual · A11y · RTL
DropdownMenuSubMenu 68.8 kB (+124 B) · 9.7 kB CSS (0) — ✓ · ✓ · ✓
BreadcrumbItem 83.1 kB (+115 B) · 12.0 kB CSS (0) — — · — · —
MoreMenu 95.7 kB (+111 B) · 17.1 kB CSS (0) — — · — · —
Table 116.1 kB (+100 B) · 17.7 kB CSS (0) — — · — · —
TableHeaderCell 106.8 kB (+93 B) · 17.2 kB CSS (0) — — · — · —
DropdownMenuRadioItem 22.6 kB (+88 B) · 6.6 kB CSS (0) — ✓ · ✓ · —
TableCell 107.2 kB (+87 B) · 17.4 kB CSS (0) — — · — · —
ContextMenu · Storybook 106.0 kB (+86 B) · 17.0 kB CSS (0) 704 (+2) ✓ · ✓ · ✓
DropdownMenuCheckboxItem 22.6 kB (+84 B) · 6.6 kB CSS (0) — ✓ · ✓ · ✓
Markdown 179.2 kB (+84 B) · 20.0 kB CSS (0) — — · — · —
SegmentedControl 92.0 kB (+65 B) · 6.8 kB CSS (0) — — · — · —
richtext/RichTextEditorToolbar 249.9 kB (+62 B) · 454 B CSS (0) — — · — · —
TabMenu 70.3 kB (+60 B) · 11.0 kB CSS (0) — — · — · —
PowerSearch 280.9 kB (+54 B) · 23.5 kB CSS (0) — — · — · —
Pagination 107.9 kB (+53 B) · 17.5 kB CSS (0) — — · — · —
AvatarGroup 44.2 kB (+51 B) · 5.6 kB CSS (0) — — · — · —
lab/CommentPin 55.3 kB (+46 B) · 1.2 kB CSS (0) — — · — · —
TopNavHeading 73.5 kB (+45 B) · 11.0 kB CSS (0) — — · — · —
TableSelectionToolbar 68.6 kB (+44 B) · 13.0 kB CSS (0) — — · — · —
TopNavMenu 73.1 kB (+44 B) · 11.1 kB CSS (0) — — · — · —
DateTimeInput 203.6 kB (+43 B) · 18.4 kB CSS (0) — — · — · —
ButtonGroup 41.2 kB (+42 B) · 3.7 kB CSS (0) — — · — · —
TabList 42.1 kB (+42 B) · 6.5 kB CSS (0) — — · — · —
lab/Schedule 104.0 kB (+39 B) · 3.9 kB CSS (0) — — · — · —
NavHeadingMenu 16.0 kB (+38 B) · 3.5 kB CSS (0) — ✓ · ✓ · ✓
Toolbar 41.3 kB (+37 B) · 8.0 kB CSS (0) — — · — · —
ContextMenuItem 28.7 kB (+36 B) · 6.3 kB CSS (0) — — · — · —
TopNavMegaMenu 68.3 kB (+36 B) · 11.7 kB CSS (0) — — · — · —
SideNavHeading 74.1 kB (+34 B) · 11.2 kB CSS (0) — — · — · —
DropdownMenuItem 21.8 kB (+27 B) · 6.3 kB CSS (0) — ✓ · ✓ · —
lab/TabBar 73.9 kB (+26 B) · 1.8 kB CSS (0) — — · — · —
SideNavItem 69.0 kB (+22 B) · 11.0 kB CSS (0) — — · — · —
DropdownMenuDivider 5.2 kB (0) · 548 B CSS (0) — ✓ · ✓ · —
DropdownMenuGroup 6.3 kB (0) · 3.4 kB CSS (0) — ✓ · ✓ · —
DropdownMenuRadioGroup 6.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · —
lab/TabBarItem 3.8 kB (0) · 1.8 kB CSS (0) — — · — · —

Package size: @astryxdesign/core 6.94 MB packed (+1.5 kB); no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 21 rows, core 39 rows; run pnpm api:report.

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.


Generated by PR Enrichment workflow | View full report

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 5, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Requesting changes. Disabled item, checkbox and radio rows are now reachable from the keyboard and stay inert, as component:DropdownMenu FR17 asks. Two things need fixing first:

  • A disabled DropdownMenuSubMenu row still renders no tabindex (DropdownMenuSubMenu.tsx:1222), so the arrow keys now target a row that cannot take focus and ArrowDown stops on the row above it in DropdownMenu, MoreMenu and ContextMenu; give it tabIndex={-1} and add a test that ArrowDown reaches it while ArrowRight, Enter and Space open nothing.
  • DropdownMenuAudit.a11y.chromium.spec.ts (lines 546-552, the disabled-row cases) still expects End to skip the trailing disabled row, so it fails once CI runs; update it to expect the disabled row and to assert that the row is exposed as disabled.

Also correct the description's "a pointer still never acts on or highlights a disabled row": a click now focuses the row and paints its focus fill. CI has not run on this draft head yet.

[Automated review]

Comment thread packages/core/src/hooks/useListFocus.ts Resolved
…cs say the keys reach it

A disabled DropdownMenuSubMenu row carries tabindex -1 like the other
rows, so ArrowDown reaches it and moves past it. The DropdownMenu audit's
disabled-row state, the checkbox and radio row docs, and a new
real-browser keyboard spec state that the keys reach a disabled row.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Requesting changes: the arrow keys, Home, End and type-ahead now reach disabled rows in all five menus as component:DropdownMenu FR17 asks, and the new tests fail on main and pass here. Two things need fixing first:

  • Miss: a mouse press on a disabled row now moves focus onto it and paints its focus fill, because the new tabIndex={-1} (for example DropdownMenuItem.tsx:280) makes the row focusable on mousedown, while module:DropdownMenu/useMenuPress FR2 keeps a disabled row unlit under a press; keep a press from focusing a disabled row (for example preventDefault() on its mousedown in the shared press path) and add a test for it.
  • Miss: docs/specs/components/DropdownMenu/DropdownMenu.spec.md line 48 still says disabled-row keyboard reach (FR12, FR17) is listed under Current-state impact, but this pull request removes that entry, so drop it from that row.

Fixing the first also makes the docs' "The pointer highlight skips it" and the changeset's "a click on it still does nothing" true. CI has not run on this draft head yet.

[Automated review]

Comment thread packages/core/src/hooks/useListFocus.ts Resolved
@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 885a2c9

A disabled row now takes focus from the keys, so the menu press keeps a
mouse press on it from focusing and lighting it (useMenuPress FR2). The
DropdownMenu record's contract row no longer lists the closed gap.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 5, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision, and two fixes are needed first.

The arrow keys, Home, End and type-ahead now reach disabled rows in all five menus as component:DropdownMenu FR17 asks, the new tests fail on main and pass here, and a mouse press on a disabled row still leaves it unfocused.

  • Owner decision: useMenuPress is a public hook, and this adds onMouseDown to its UseMenuPressReturn['menuProps'], which no current record covers, so an engineering owner (the author may answer as one) decides whether the public hook carries it or the guard stays inside core's menus, and records it by commenting /approve-spec <full head SHA> once the record names the member.
  • A caller's onMouseDown on DropdownMenu and NavHeadingMenu no longer runs, because the spread menuPress.menuProps now brings its own onMouseDown (DropdownMenu.tsx:1715, NavHeadingMenu.tsx:229); compose the caller's handler with the guard and add a test.
  • useMenuPress loses its JSDoc, because keepFocusOffDisabledRow now sits between the hook's comment and its declaration (useMenuPress.ts:319); move the helper above that comment.

CI has not run on this draft head yet.

[Automated review]

Comment thread packages/core/src/hooks/useMenuPress.ts Resolved
Comment thread packages/core/src/hooks/useMenuPress.ts Resolved
Comment thread packages/core/src/hooks/useMenuPress.ts Resolved
Comment thread packages/core/src/hooks/useMenuPress.ts Resolved
…nuPress is unchanged

The useMenuPress menuProps.onMouseDown goes: it was a new field on the
public return and dropped a caller's onMouseDown. Each Core row
(DropdownMenuItem, CheckboxItem, RadioItem, SubMenu row,
NavHeadingMenuItem) instead composes its own onMouseDown, after the
caller's, that cancels the press's focus while the row is disabled.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this draft head yet.

The arrow keys, Home, End and type-ahead now reach disabled rows in all five menus as component:DropdownMenu FR17 asks, the new tests fail on the base and pass here, and each disabled row now keeps a mouse press's focus off itself without changing useMenuPress, so a caller's onMouseDown reaches the menu again.

  • Resolve the conflict with main in DropdownMenu.spec.md by keeping main's "the still mouse (FR22)" in the Contract at a glance row and dropping "disabled-row keyboard reach (FR12, FR17)".
  • Non-blocking: the menuItemRoles.ts header does not name the new keepDisabledRowUnfocused, and the comment at DropdownMenu.test.tsx:2571 says Home and End reach a disabled row while that case's first and last rows are enabled.

[Automated review]

/**
* @file menuItemRoles.ts
* @output Shared menu-item role set + focus selector + keyboard activation.
* @output Shared menu-item role set, row selectors, and keyboard activation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: this header, and @position below ("used by DropdownMenu and ContextMenu"), does not name the new keepDisabledRowUnfocused, which the four DropdownMenu rows and NavHeadingMenuItem now import. Suggest: @output Shared menu-item role set, row selectors, keyboard activation, and the disabled-row press guard.

@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec f68693b

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026
@cixzhang cixzhang added the ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) label Nov 6, 2026
@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 03:24
…till-mouse note kept; disabled-row reach gap closed)
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 05232a6

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Requesting changes for one documentation fix; nothing else blocks.

The arrow keys, Home, End and type-ahead now reach disabled rows in all five menus as component:DropdownMenu FR17 asks, the new tests fail on the base and pass here, and a mouse press on a disabled row still leaves it unfocused.

  • Miss: the isDisabled JSDoc of DropdownMenuCheckboxItem (DropdownMenuCheckboxItem.tsx:121-123) and DropdownMenuRadioItem (DropdownMenuRadioItem.tsx:114-117) still says a disabled row "takes no focus" and that the arrow keys and typeahead skip it, so reword both to match the corrected .doc.mjs text.
  • Non-blocking: the menuItemRoles.ts header and the comment at DropdownMenu.test.tsx:2572 are still as noted earlier.

CI has not run on this head because the pull request is still a draft.

[Automated review]

…s the keys reach a disabled row

The JSDoc still said a disabled row takes no focus and the keys skip it,
the opposite of what the rows now do and of their docs.
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec ebd5387

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet because the pull request is still a draft, so it runs once the pull request is marked ready for review.

The arrow keys, Home, End and type-ahead now reach disabled rows in all five menus as component:DropdownMenu FR17 asks, the new tests fail on the base and pass here, a mouse press on a disabled row still leaves it unfocused, and the checkbox and radio rows' isDisabled JSDoc now matches that behavior.

  • Non-blocking: the menuItemRoles.ts header does not name keepDisabledRowUnfocused or its NavHeadingMenuItem caller, and the comment at DropdownMenu.test.tsx:2572 says End and Home reach a disabled row while both land on enabled rows.

[Automated review]

DropdownMenuSubMenu.spec.md: main's table (with FR11), minus the FR7
gap ('a disabled row renders no tabindex today') this branch closes.
@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 6d2d2d6

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Requesting changes for one keyboard-open case; everything else checks out.

  • Miss: in a drilled-in sub-menu (a phone or tablet, or presentation="drill-in") whose first row is disabled, a keyboard open now focuses that disabled row, because DropdownMenuSubMenu.tsx:797 takes items[1] from the row list this change widens to disabled rows, against component:DropdownMenu FR17 and component:DropdownMenuSubMenu FR2; pick the first enabled row after Back and add a drill-in test beside the flyout case.

The arrow keys, Home, End and type-ahead reach a disabled row in all five menus, the row stays inert, and the new and flipped tests fail on main and pass here. Two earlier non-blocking notes, the menuItemRoles.ts header and the Home/End comment in DropdownMenu.test.tsx, are still open. CI has not run on this draft head yet.

[Automated review]

…led row after Back

The drilled view's row list now includes disabled rows, so a drill-in
whose first child was disabled opened on it. The open now lands on the
first enabled row after Back; ArrowUp still reaches the disabled one.
@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec b472e59

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this draft head yet.

A keyboard drill-in now lands on the first enabled row after Back, with a phone test that fails without the fix, so the last blocking issue is resolved. The arrow keys, Home, End and type-ahead reach a disabled row in all five menus, the row is announced as disabled and stays inert, and a keyboard open still lands on a row that acts. One earlier non-blocking note is still open: the menuItemRoles.ts header does not mention the new press guard or NavHeadingMenuItem.

[Automated review]

@cixzhang
cixzhang marked this pull request as ready for review November 7, 2026 21:29
@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 443a0ab

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: the required build, test and docsite-test suites were deferred on this push and have not run on this head yet; they run on the pre-merge re-run.

The arrow keys, Home, End, the Page keys and type-ahead now reach a disabled row in DropdownMenu, its sub-menus, MoreMenu, ContextMenu and NavHeadingMenu. The row is announced as disabled and stays inert, a keyboard open still lands on an enabled row, and a mouse press still leaves the row unfocused. The new and flipped tests fail on main and pass here.

Two optional follow-ups, neither blocking:

  • Miss: DropdownMenuCheckboxItem and DropdownMenuRadioItem also ship as BreadcrumbMenuCheckboxItem and BreadcrumbMenuRadioItem, and a breadcrumb's menu still skips disabled rows, so the new isDisabled docs could scope the reach sentence to the menus that give it.
  • The menuItemRoles.ts header could name the new disabled-row press guard and the rows that import it.

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 443a0aba Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DropdownMenu, MoreMenu, ContextMenu: arrow keys skip disabled items, so keyboard users never reach them

1 participant