Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

spec(DropdownMenu): a disabled menu row is reached by the keyboard and stays inert (DEC-11) (#9008)

Cindy Zhanga96269ed3fb9
diff --git a/docs/specs/components/ContextMenu/ContextMenu.spec.md b/docs/specs/components/ContextMenu/ContextMenu.spec.md
index 81f352f066..b8f628fe01 100644
--- a/docs/specs/components/ContextMenu/ContextMenu.spec.md
+++ b/docs/specs/components/ContextMenu/ContextMenu.spec.md
@@ -36,15 +36,15 @@ system_specs: [spec:AST-094, spec:AST-107]
## Contract at a glance
-| Area | Contract |
-| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| Public contract | None changes. ContextMenu takes caller `children` as the Trigger area, data-driven `items` or compound `menuContent`, `label`, `presentation`, `isDisabled`, and `triggerAs`. |
-| Behavior | Right-click, Shift+F10 or the Menu key, and a touch long press open a menu at the cursor (or the trigger's bottom-left from the keyboard), or a bottom sheet; rows follow DropdownMenu's rows and press model. |
-| End-user impact | People reach a region's actions by mouse, keyboard, or a held finger; a sub-menu drills in on a phone. A touch-opened menu does not yet grow from the finger or lift its trigger, and a scroll that starts outside leaves it open; mouse and keyboard opens keep today's look. |
-| Builder impact | Builders wrap any region, including an inline reference in prose (`triggerAs="span"`). |
-| Compatibility/readiness | Records shipped behavior; no API or DOM change; the released default under a finger moves as `spec:AST-094` FR25 lists, with `presentation="popover"` keeping it. The touch grow, pan dismissal, and trigger lift (FR5) are listed under Current-state impact. |
-| Review checks | Reject a trigger that gains a role or `aria-haspopup`, a menu that bypasses the shared Escape stack, a `context-menu` target moved off the painted surface, or a second open-state owner. |
-| Governing rules | `spec:AST-107` FR8; `spec:AST-094` FR26–FR35; `module:DropdownMenu/useMenuPress`; `family:overlay-dismissal`; `architecture:component-theming-surface`; `architecture:layer-runtime`. |
+| Area | Contract |
+| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Public contract | None changes. ContextMenu takes caller `children` as the Trigger area, data-driven `items` or compound `menuContent`, `label`, `presentation`, `isDisabled`, and `triggerAs`. |
+| Behavior | Right-click, Shift+F10 or the Menu key, and a touch long press open a menu at the cursor (or the trigger's bottom-left from the keyboard), or a bottom sheet; rows follow DropdownMenu's rows and press model. |
+| End-user impact | People reach a region's actions by mouse, keyboard, or a held finger; a sub-menu drills in on a phone. A touch-opened menu does not yet grow from the finger or lift its trigger, and a scroll that starts outside leaves it open; mouse and keyboard opens keep today's look. |
+| Builder impact | Builders wrap any region, including an inline reference in prose (`triggerAs="span"`). |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled row gains `tabindex="-1"`; the released behavior under a finger moves as `spec:AST-094` FR25 lists, with `presentation="popover"` keeping it. The touch grow, pan dismissal, and trigger lift (FR5) are listed under Current-state impact. |
+| Review checks | Reject a trigger that gains a role or `aria-haspopup`, a menu that bypasses the shared Escape stack, a `context-menu` target moved off the painted surface, or a second open-state owner. |
+| Governing rules | `spec:AST-107` FR8; `spec:AST-094` FR26–FR35; `module:DropdownMenu/useMenuPress`; `family:overlay-dismissal`; `architecture:component-theming-surface`; `architecture:layer-runtime`. |
This table is a review projection; the body below is authoritative.
@@ -57,9 +57,12 @@ cursor-positioned pointer menu or a BottomSheet-hosted touch action list.
- Released default preserved: `no` under a finger: the omitted `presentation`
follows `spec:AST-094` FR31–FR33 (FR5); `presentation="popover"` keeps the
- released menu (`spec:AST-094` FR25)
-- Compatibility class: records shipped behavior; no public prop, export, or
- DOM change
+ released menu (`spec:AST-094` FR25); and `no` for disabled rows on every
+ pointer: the keyboard reaches a disabled row and the row carries
+ `tabindex="-1"` (FR8, `component:DropdownMenu` FR17), a defect fix under
+ `component:DropdownMenu` DEC-11 (owner decision, 2026-11-04)
+- Compatibility class: records shipped behavior; no public prop or export
+ change; a disabled row gains `tabindex="-1"` (FR8)
- Controlled/uncontrolled behavior: internally managed open state
- Migration decision: `spec:AST-094` FR25
@@ -106,7 +109,7 @@ Consumer props, content modes, and presentation policy remain documented in
| FR5 | The Pointer menu surface carries `data-astryx-menu-press` and follows `module:DropdownMenu/useMenuPress` FR1–FR7: the row under the release acts, the highlight follows a held pointer, a mouse released outside closes and a finger leaves the menu open, the stray click never acts, and `touch-action` follows overflow. The long press that opened the menu does not close it as it lifts; a tap outside closes it, and a mouse press outside closes it at the press. Under a finger the menu MUST close as a pan that starts outside it begins (`spec:AST-094` FR32), MUST hand the held finger that opened it to the menu as the opening press, and MUST treat a pen's press outside as FR32 does (FR33). The lift and the grow apply only to a menu opened by touch (a touch-initiated open on a coarse pointer); a menu opened by mouse or keyboard keeps its released appearance and motion, with no lift, no tint and no grow. A touch-opened menu MUST grow out of the finger's point and shrink back into it (`spec:AST-094` FR31) as its own surface, by transform and opacity only (`spec:AST-094` FR5), with no second element such as a glass surface growing behind it, and on a block trigger MUST lift the trigger above the page with the menu beside it (FR33; DD1, DEC-2). The trigger's lift and the menu's grow play on the theme's duration and easing tokens (`spec:AST-094` FR45), and the trigger's return, part of the menu's exit, plays on the theme's exit duration and easing (`spec:AST-094` FR7); the three `springs.contextMenu*` roles stay as the measured reference (`spec:AST-094` FR4). Implementation gap: it keeps the layer's own entrance and exit, a scroll that starts outside leaves it open, the opening finger is not handed to the menu so it cannot slide to a row, no trigger lift or page tint exists, and a pen press outside closes it at the press. Right-click, Shift+F10, long-press invocation, and keyboard navigation are as FR1 and FR8 state. | `module:DropdownMenu/useMenuPress`; `spec:AST-094` FR26–FR33 |
| FR6 | With `triggerAs="span"` the Trigger area is an inline element that owns a box, so the cursor anchor measures from the trigger's own rect on every invocation path. Right-click, Shift+F10, long-press, and `context-menu` target placement all use that box. | DEC-1 |
| FR7 | Sub-menu rows follow `component:DropdownMenu` FR11 inside the pointer menu: ContextMenu mounts the same drill-in view stack, named after its `label`, so a sub-menu drills in on a phone here too. A sub-menu with a header or footer shows its rows alone here (`component:DropdownMenu` FR20). | `component:DropdownMenu/DEC-4` |
-| FR8 | In the pointer menu ArrowDown on the last enabled row wraps to the first and ArrowUp on the first to the last; PageDown and PageUp page as in `component:DropdownMenu` FR12; a held key's auto-repeat does not activate; typeahead matches the row's label element alone. Arrow keys and typeahead skip disabled rows, shipped behavior that is not a requirement until `component:DropdownMenu` OQ1 is ruled. | Current source and tests |
+| FR8 | In the pointer menu ArrowDown on the last row wraps to the first and ArrowUp on the first to the last; PageDown and PageUp page as in `component:DropdownMenu` FR12; a held key's auto-repeat does not activate; typeahead matches the row's label element alone. A disabled row is reached by these keys and by typeahead and stays inert, as `component:DropdownMenu` FR17 states. Implementation gap: the arrow keys and typeahead skip disabled rows today (Current-state impact). | Current source and tests |
| FR9 | While the Pointer menu surface is open, it participates in `family:overlay-dismissal` through the shared stack and provides descendant depth. One Escape press affects only the top-most present nested surface; ContextMenu closes only when it is that surface. | `family:overlay-dismissal` FR1–FR6; `ContextMenu.test.tsx` nested-layer case |
| FR10 | ContextMenu MUST be built on the public headless context menu (`spec:AST-107` FR8), with its invocation, open state, and cleanup the factory's and no behavior of its own beside the factory's. Implementation gap: no headless context menu ships; ContextMenu owns its invocation, open state, outside-press listener, and cleanup itself. | `spec:AST-107` FR8 |
@@ -252,7 +255,7 @@ anchor is positioning infrastructure rather than consumer anatomy.
| DEC-2 | Element-count browser test on the touch story (`spec:AST-017` FR60) | At rest and lifted, fine and coarse pointer | A lift element at rest, a copy of the trigger, or an open count beyond the layer, the shadow, the anchor and the placeholder fails. Evidence gap: the lift is unbuilt, so no test exists. | `audit:ContextMenu/anatomy` |
| FR6, AR1, ORD1 | `ContextMenu.test.tsx` "inline trigger (triggerAs)" and cursor-anchor cases; "does not put aria-haspopup on the role-less trigger wrapper (menus-15)"; `ContextMenu.triggerProps.test.tsx`; `ContextMenuCursorAnchor.a11y.browser.spec.ts` | `span` in a paragraph; default `div`; pointer and keyboard anchors | A block trigger in prose, a trigger with a role or `aria-haspopup`, or an anchor outside the trigger fails. | `audit:ContextMenu/behavior` |
| FR7 | `ContextMenu.test.tsx` "drills into nested data items inside the BottomSheet", "renders a submenu from a nested items array and keyboard-reaches an item after it", and "shows a sub-menu with a header or footer as its rows alone, and says why in development" | Sheet drill-in; pointer sub-menu; regions under ContextMenu | A missing sub-menu, an unreachable row after it, or a sub-menu dialog under ContextMenu fails. Evidence gap: no test here asserts the pointer drill-in on a phone. | `audit:ContextMenu/behavior` |
-| FR8 | `ContextMenu.test.tsx` "wraps arrow navigation at the ends", typeahead cases, and "skips aria-disabled menuitemradio and menuitemcheckbox items during arrow navigation" | Wrap; typeahead; disabled rows | A clamped arrow, a missing typeahead match, or a disabled row landed on fails. Evidence gap: no test asserts Page keys or auto-repeat. | `audit:ContextMenu/behavior` |
+| FR8 | `ContextMenu.test.tsx` "wraps arrow navigation at the ends", typeahead cases, and disabled-row keyboard cases (`component:DropdownMenu` FR17) | Wrap; typeahead; disabled rows | A clamped arrow, a missing typeahead match, a disabled row the keys or typeahead skip, or a disabled row that acts or closes the menu fails. Evidence gap: no test asserts Page keys or auto-repeat. | `audit:ContextMenu/behavior` |
| FR9 | `ContextMenu.test.tsx` "lets a nested layer consume Escape before the context menu", "closes on Escape even when opened without auto-focus", and "ignores Escape during IME composition" | Nested layer; Escape; composition | A context menu that closes with its nested child, or on a composition Escape, fails. | `audit:ContextMenu/behavior` |
| FR10, PR1 | `ContextMenu.test.tsx` invocation and handler-composition cases ("composes the consumer context-menu handler with menu opening", "keeps component-owned opening when a consumer prevents default", "composes consumer touch handlers with long-press detection") | Right click, long press, keyboard | A context request that does not open the menu, or a dropped consumer handler, fails. Evidence gap: no test asserts listener cleanup on unmount; nothing tests a headless factory, which does not ship (the FR10 gap). | `audit:ContextMenu/behavior` |
| Theming anatomy map | `scripts/check-knowledge.mjs` | Canonical anatomy and target | Missing, extra, prefixed, stale, or unclassified mappings fail repository validation. | `audit:ContextMenu/theming` |
@@ -260,6 +263,9 @@ anchor is positioning infrastructure rather than consumer anatomy.
## Current-state impact
+- **Disabled rows skipped (FR8).** The arrow keys and typeahead skip disabled
+ rows instead of reaching them as `component:DropdownMenu` FR17 and DEC-11
+ state.
- **No headless factory (FR10).** No headless context menu ships, so ContextMenu
owns its invocation, open state, and outside-press listener itself, against
`spec:AST-107` FR8.
diff --git a/docs/specs/components/DropdownMenu/DropdownMenu.spec.md b/docs/specs/components/DropdownMenu/DropdownMenu.spec.md
index ab7937b298..d918a131bb 100644
--- a/docs/specs/components/DropdownMenu/DropdownMenu.spec.md
+++ b/docs/specs/components/DropdownMenu/DropdownMenu.spec.md
@@ -39,15 +39,15 @@ system_specs: [spec:AST-020/FR15, spec:AST-094, spec:AST-102]
## Contract at a glance
-| Area | Contract |
-| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| Public contract | None changes. DropdownMenu takes a `button` (Button props) or `renderTrigger`, data-driven `items` or compound children, `presentation`, `isMenuOpen` and `onOpenChange`, placement and alignment, `menuMaxHeight`, `header`, and `footer`. |
-| Behavior | A Menu Button trigger opens an anchored pointer menu or a bottom-sheet action list. Rows act on the release under the shared press model; sub-menus fly out beside their row or drill in on a compact touch display; a header or footer makes the pointer popover a modal dialog around the menu. |
-| End-user impact | People pick actions by mouse, finger, or keyboard; keyboard users get a focus return with a ring and pointer users without one; on a phone sub-menus replace the rows instead of flying off-screen. Under a finger the menu opens after a 500 ms hold or at a tap's click, does not grow from its trigger, and a pan outside does not close it. |
-| Builder impact | Builders choose the trigger, the rows, and the regions; rows stay menu items and every non-item control goes in `header` or `footer`. |
-| Compatibility/readiness | Records shipped behavior; no API or DOM change; the released default under a finger moves as `spec:AST-094` FR25 lists, with `presentation="popover"` keeping it. Finger press-open (FR8), touch grow and pan dismissal (FR21), and the delegated Trigger Button gaps are listed under Current-state impact. |
-| Review checks | Reject a control placed among the rows, a lost trigger ARIA wiring, a drilled-in view that leaves the menu box, a header or footer without the dialog, a lost focus-return modality, or a target moved off its painted element. |
-| Governing rules | `spec:AST-020` FR15; `spec:AST-094` FR26–FR35; `module:DropdownMenu/useMenuPress`; `architecture:interaction-modality` INV1; `architecture:component-theming-surface`; `architecture:layer-runtime`; `family:overlay-dismissal`; `family:navigation-destinations`. |
+| Area | Contract |
+| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Public contract | None changes. DropdownMenu takes a `button` (Button props) or `renderTrigger`, data-driven `items` or compound children, `presentation`, `isMenuOpen` and `onOpenChange`, placement and alignment, `menuMaxHeight`, `header`, and `footer`. |
+| Behavior | A Menu Button trigger opens an anchored pointer menu or a bottom-sheet action list. Rows act on the release under the shared press model; sub-menus fly out beside their row or drill in on a compact touch display; a header or footer makes the pointer popover a modal dialog around the menu. |
+| End-user impact | People pick actions by mouse, finger, or keyboard; keyboard users get a focus return with a ring and pointer users without one; on a phone sub-menus replace the rows instead of flying off-screen. Under a finger the menu opens after a 500 ms hold or at a tap's click, does not grow from its trigger, and a pan outside does not close it. |
+| Builder impact | Builders choose the trigger, the rows, and the regions; rows stay menu items and every non-item control goes in `header` or `footer`. |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled row gains `tabindex="-1"`; the released behavior under a finger moves as `spec:AST-094` FR25 lists, with `presentation="popover"` keeping it. Finger press-open (FR8), touch grow and pan dismissal (FR21), disabled-row keyboard reach (FR12, FR17), and the delegated Trigger Button gaps are listed under Current-state impact. |
+| Review checks | Reject a control placed among the rows, a lost trigger ARIA wiring, a drilled-in view that leaves the menu box, a header or footer without the dialog, a lost focus-return modality, or a target moved off its painted element. |
+| Governing rules | `spec:AST-020` FR15; `spec:AST-094` FR26–FR35; `module:DropdownMenu/useMenuPress`; `architecture:interaction-modality` INV1; `architecture:component-theming-surface`; `architecture:layer-runtime`; `family:overlay-dismissal`; `family:navigation-destinations`. |
This table is a review projection; the body below is authoritative.
@@ -63,9 +63,12 @@ mount.
- Released default preserved: `no` under a finger: the omitted `presentation`
follows `spec:AST-094` FR29, FR31, and FR32 (FR8, FR21);
- `presentation="popover"` keeps the released behavior (`spec:AST-094` FR25)
-- Compatibility class: records shipped behavior; no public prop, export, or
- DOM change
+ `presentation="popover"` keeps the released behavior (`spec:AST-094` FR25);
+ and `no` for disabled rows on every pointer: the keyboard reaches a disabled
+ row and the row carries `tabindex="-1"` (FR17), a defect fix under DEC-11
+ (owner decision, 2026-11-04)
+- Compatibility class: records shipped behavior; no public prop or export
+ change; a disabled row gains `tabindex="-1"` (FR17)
- Controlled/uncontrolled behavior: `isMenuOpen` with `onOpenChange`, or
uncontrolled
- Migration decision: `spec:AST-094` FR25 and DEC-4
@@ -132,12 +135,12 @@ component-local concepts; each keeps its released default.
| FR9 | With `renderTrigger`, the rendered control carries `aria-haspopup`, `aria-expanded`, `aria-controls` and the `id` the menu's `aria-labelledby` points at, and receives the same press-model, keyboard-open and toggle-click handlers as the Button path; the menu is named by that control. A disabled custom trigger never opens the menu or the sheet. `button` and `renderTrigger` are mutually exclusive: both given, `renderTrigger` wins and a dev warning fires, in both presentations. A drilled-in Back row (FR11) returns to the menu by that same name: the caller's `aria-label` when given, else the control's accessible name, read as the menu opens. | DEC-3 |
| FR10 | An action row with `href` renders as one anchor carrying `role="menuitem"` (the pointer menu) or the touch sheet's link row, routed through `LinkProvider`; a plain click runs `onClick`, then closes the menu (`hasCloseOnSelect`), then lets the browser navigate; a modified click does not run `onClick`, closes the menu, and is left to the browser; in the pointer menu a middle click closes the menu (`hasCloseOnSelect`), then runs the caller's `onAuxClick`, while the touch sheet leaves a middle click to the browser and stays open; a right click is left to the context menu; Enter and Space activate through a synthesized click that carries the key's modifiers. A disabled link row has no `href`; a blocked destination renders inertly. | Current behavior; `family:navigation-destinations` |
| FR11 | When a compact touch display opened the pointer menu (the query the root presentation uses for its bottom sheet, sampled once as it opens), an `adaptive` sub-menu row drills in: its rows and a leading Back row named "Back to <parent>" replace the menu's rows in the same Pointer menu surface, no flyout opens, the drilled list is a `menu` named by the row's label, and Back, Escape and ArrowLeft return to the row with focus on it; a pick inside closes the whole menu, and closing the menu resets the drilled view. Roving focus and typeahead scope to the shown rows; sibling rows and dividers need no knowledge of it. `presentation="flyout"` keeps the flyout; `"drill-in"` drills in on any pointer. | DEC-4; `spec:AST-094` FR34 |
-| FR12 | In the pointer menu ArrowDown on the last enabled row wraps to the first and ArrowUp on the first to the last; PageDown and PageUp move to the last and first fully visible enabled row and, pressed there again, one viewport further without wrapping; ArrowUp on the trigger opens with the last enabled row highlighted; the key that opened the menu and its auto-repeats do not activate; typeahead matches the row's label element alone and ignores Control/Command chords and input-method composition. | Current source and tests |
+| FR12 | In the pointer menu ArrowDown on the last row wraps to the first and ArrowUp on the first to the last; PageDown and PageUp move to the last and first fully visible row and, pressed there again, one viewport further without wrapping; disabled rows count as rows for every one of these keys (FR17); ArrowUp on the trigger opens with the last enabled row highlighted; the key that opened the menu and its auto-repeats do not activate; typeahead matches the row's label element alone and ignores Control/Command chords and input-method composition. | Current source and tests |
| FR13 | On a mouse, a nested flyout stays open while the pointer is inside the triangle from where it left its row to the flyout's near edge — including while the pointer is paused there — and closes after the existing delay once the pointer has left both the row and that triangle. The row's click toggle and its guard window are unchanged. | Current behavior |
| FR14 | Compound groups follow `component:DropdownMenuGroup`; a data-mode `{type: 'section'}` entry is a `role="group"` named by its title, and an untitled section renders its rows without a heading. | DEC-6; current tests |
| FR15 | With `header` or `footer`, the pointer popover is a `role="dialog"` with `aria-modal="true"`, named like the menu, holding the header, then the `role="menu"` element, then the footer; the menu element holds only its rows. The trigger says `aria-haspopup="dialog"` and its `aria-controls` names the popover that holds the dialog. A region keeps its own keys and presses: neither the menu's key handling nor its press model claims an event that begins there. The menu is one Tab stop between the regions. Tab and Shift+Tab move through the header's controls, the menu, then the footer's controls, and wrap at either end; a control that is hidden, or under a hidden ancestor within its region, is not a stop. From a row, or a row of an open sub-menu, Tab and Shift+Tab close every open flyout and continue from the menu's stop. With no other stop, focus stays in the menu. Escape closes from anywhere in the popover, and focus returns to the trigger. The bottom sheet, already a dialog, shows the header above the actions and the footer below them. Without either prop, the menu renders and behaves exactly as it does without them: no dialog, `aria-haspopup="menu"`, and Tab closes the menu. | DEC-8, DEC-10 |
| FR16 | Checkbox rows follow `component:DropdownMenuCheckboxItem`. | Current source |
-| FR17 | Arrow keys and typeahead skip disabled rows, including checkbox and radio rows. Shipped behavior, not a requirement until OQ1 is ruled. | Current source and tests |
+| FR17 | A disabled menu row MUST be reached by the keyboard and stay inert (DEC-11): in DropdownMenu, its sub-menus, MoreMenu, ContextMenu and NavHeadingMenu, ArrowDown, ArrowUp, Home, End and type-ahead visit a disabled row as they visit any other row, the row takes focus and exposes `aria-disabled="true"`, and Enter, Space or a click on it does nothing and leaves the menu open. Opening a menu from the keyboard still lands on an enabled row: the first, or the last after ArrowUp on the trigger (FR12, AR4). Implementation gap: the arrow keys and type-ahead skip disabled rows today. | DEC-11; WAI-ARIA Menu pattern |
| FR20 | With `header` or `footer` on a sub-menu (`DropdownMenuSubMenu`), its surface is a modal dialog named by its row (AR7), holding the header, the sub-menu's `role="menu"` (rows only), then the footer. It sits in a host `DropdownMenu` renders beside its menu, never inside a menu; under a root with no such host (`ContextMenu`) the sub-menu shows its rows alone. On a fine pointer the dialog is the flyout; on a compact touch display, the drilled-in view, which replaces the root's menu and regions until popped. A region keeps its own keys and presses. The rows are one Tab stop: Tab and Shift+Tab walk the header's controls, the rows, then the footer's, and wrap; from a deeper flyout, that flyout closes and the walk goes on from the rows. An open lands as for any sub-menu (FR11, FR12), not on a region. Escape in the dialog, outside an IME composition and unless a control there handled it, returns focus to the row and leaves the root open. A pointer leaving the flyout keeps it open until focus leaves, and it closes with the flyout holding its row. Without either prop nothing changes. | Current behavior; FR15; AR5 |
| FR21 | Under a finger, in the touch modes (`presentation` not pinned to `'popover'`), the pointer menu MUST grow out of the Trigger button on the theme's entrance duration and easing tokens and collapse back into it on the theme's exit duration and easing (`spec:AST-094` FR7, FR31, FR45), and MUST close as a pan that starts outside it begins (FR32); a pinned `'popover'` keeps the layer's own entrance. A pan dismissal is the menu's own close: focus that was in the menu returns to the Trigger button, whose `aria-expanded` turns false. A mouse keeps the layer's own entrance and exit. Implementation gap: the menu keeps the layer's own entrance and exit under a finger too, and has no pan-outside dismissal of its own. | `spec:AST-094` FR31, FR32; `family:overlay-dismissal` AV6 |
@@ -201,8 +204,8 @@ visibility helper.
not activatable.
- **AR3 — A drilled-in sub-menu stays one menu.** On a compact touch display a
sub-menu replaces the rows in the same menu box with a "Back to <parent>" row
- and its own rows; after a keyboard open focus lands on the first row after
- Back, after a pointer open on the drilled list (the `menu`); Back, Escape, or
+ and its own rows; after a keyboard open focus lands on the first enabled row
+ after Back, after a pointer open on the drilled list (the `menu`); Back, Escape, or
ArrowLeft return to the parent view with focus restored.
- **AR4 — The anchored trigger adopts the APG Menu Button pattern's required
parts** (`spec:AST-020/FR15`): the control that opens the anchored pointer
@@ -227,13 +230,13 @@ visibility helper.
names the popover that holds the dialog rather than the menu, as Popover's
own trigger does.
- **AR6 — Disabled rows are inert.** A disabled row runs no caller activation
- handler and does not close the menu; FR17 records that the arrow keys skip
+ handler and does not close the menu; FR17 records that the keyboard reaches
it.
- **AR7 — A sub-menu with a header or footer adopts the same APG Dialog
(Modal) parts for its own surface** (`spec:AST-020/FR15`): `role="dialog"`,
`aria-modal="true"`, and an accessible name, its row's; focus moves into the
- dialog on open, to the sub-menu's first row or its menu as FR11 and FR12
- state; Tab and Shift+Tab cycle within it (FR20); Escape closes it and focus
+ dialog on open, to the sub-menu's first enabled row or its menu as FR11 and
+ FR12 state; Tab and Shift+Tab cycle within it (FR20); Escape closes it and focus
returns to the row. The sub-menu's menu inside keeps AR3. The row keeps
`aria-expanded`; its `aria-haspopup` says `dialog` and its `aria-controls`
names the dialog.
@@ -355,7 +358,7 @@ than adding a DropdownMenu-owned heading target.
| FR13 | `DropdownMenuSubMenu.test.tsx` safe-triangle cases | Diagonal path, pause inside, leaving both | A flyout that closes inside the triangle or stays open after leaving it fails. | `audit:DropdownMenu/behavior` |
| FR14 | `DropdownMenu.test.tsx` section cases | Titled and untitled sections | A missing group role or title fails. | `audit:DropdownMenu/accessibility` |
| FR15, AR5 | `DropdownMenu.test.tsx` header and footer cases, including the hidden-control, open-sub-menu, and header radio-group cases; `MenuHeaderFooter.a11y.chromium.spec.ts` | Regions present and absent; hidden controls; open flyout; custom trigger; bottom sheet | A region inside the menu, a missing or unnamed dialog, a wrong `aria-haspopup`, a Tab that leaves the popover, a hidden control taken as a stop, or a region whose keys the menu takes fails. | `audit:DropdownMenu/accessibility` |
-| FR17, AR6 | `DropdownMenu.test.tsx` "skips aria-disabled menuitemradio and menuitemcheckbox items during arrow navigation" and "typeahead skips an aria-disabled item and matches the next enabled label" (the shipped behavior OQ1 leaves open); disabled-row cases | Disabled rows | A disabled row that runs a caller handler fails. | `audit:DropdownMenu/accessibility` |
+| FR17, AR6 | DropdownMenu, MoreMenu, ContextMenu and NavHeadingMenu keyboard tests, plus a real-browser keyboard check of focus order and blocked activation and a real-browser accessibility-tree check that a focused disabled row is announced as disabled (`spec:AST-085` Platform support); disabled-row cases | Disabled rows | A disabled row that runs a caller handler, closes the menu, is skipped by the arrow keys or type-ahead, or is not announced as disabled fails. | `audit:DropdownMenu/accessibility` |
| FR20, AR7 | `DropdownMenuSubMenu.test.tsx` header and footer cases, including "on a phone"; `SubMenuHeaderFooter.a11y.chromium.spec.ts`; `ContextMenu.test.tsx` "shows a sub-menu with a header or footer as its rows alone, and says why in development" | Fine pointer and phone; Escape paths; nested flyouts; pointer leaving | A region inside a menu, an unnamed dialog, a Tab walk that does not wrap, an Escape that closes the root, or a flyout that closes while focus is inside fails. | `audit:DropdownMenu/accessibility` |
| FR21 | Evidence gap: no test, matching the FR21 gap | — | — | `audit:DropdownMenu/behavior` |
| PR1 | Evidence gap: no test asserts the listener and observer bounds | — | — | `audit:DropdownMenu/behavior` |
@@ -375,6 +378,9 @@ than adding a DropdownMenu-owned heading target.
- **Rich sheet heading for caller-rendered triggers (OQ2).** With
`renderTrigger`, the bottom-sheet heading shows only the flattened text of
the trigger's accessible name, and a trigger with no name gets no heading.
+- **Disabled rows skipped (FR12, FR17).** The arrow keys and type-ahead skip
+ disabled rows, including checkbox and radio rows, instead of reaching them
+ as DEC-11 states.
## Decision log
@@ -548,15 +554,26 @@ pattern requires; Escape and a press outside close it. Without either prop
the component is unchanged: a Menu Button whose Tab closes the menu. Rejected:
closing on Tab past either end, which leaves a modal dialog by Tab.
+### DEC-11 — A disabled menu row is reached by the keyboard and stays inert
+
+**Reference:** `component:DropdownMenu/DEC-11`
+**Decider:** `cixzhang`, owner decision, 2026-11-04
+
+In a menu, a disabled row stays in the keyboard path so a person learns it
+exists and why it is unavailable, as the WAI-ARIA Menu pattern and its keyboard
+guidance recommend for disabled menu items. Arrow keys, Home, End and
+type-ahead visit it; it takes focus and is announced as disabled; it does
+nothing when activated and does not close the menu. Opening a menu from the
+keyboard still lands on an enabled row: the first, or the last after ArrowUp
+on the trigger. The rule covers DropdownMenu, its sub-menus, MoreMenu,
+ContextMenu and NavHeadingMenu; other menus are out of scope for this decision.
+Other composites, such as a toolbar, a button group or a
+listbox, keep their own navigation. Rejected: skipping disabled rows, which
+hides an unavailable action and its reason from keyboard and screen-reader
+users.
+
## Open questions
-- **OQ1 — Which shared owner should make disabled menu rows keyboard-discoverable
- without changing disabled behavior in non-menu composites?** (`human-api`)
- WAI-ARIA's Menu pattern keeps disabled menu items focusable but inert. Current
- `useListFocus` deliberately skips every `aria-disabled` item for all consumers,
- and DropdownMenu's enabled-only focus-on-open and navigation tests depend on
- that result. The requirement is objective; choosing a menu-specific hook policy
- or a DropdownMenu-owned path changes a shared API and ownership boundary.
- **OQ2 — Rich sheet heading for caller-rendered triggers.** (`human-api`)
With `renderTrigger`, the bottom-sheet heading and the dialog's name come from
the trigger's accessible name read from the page, so a rich trigger (an avatar
diff --git a/docs/specs/components/DropdownMenu/DropdownMenuCheckboxItem.spec.md b/docs/specs/components/DropdownMenu/DropdownMenuCheckboxItem.spec.md
index 1769b2d63f..3d6feebb62 100644
--- a/docs/specs/components/DropdownMenu/DropdownMenuCheckboxItem.spec.md
+++ b/docs/specs/components/DropdownMenu/DropdownMenuCheckboxItem.spec.md
@@ -38,7 +38,7 @@ system_specs: [spec:AST-020]
| Behavior | The row is one `menuitemcheckbox` whose `aria-checked` is its `value`; an enabled activation reports `!value` and keeps the menu open unless asked to close; a disabled row is inert. |
| End-user impact | People toggle options without the menu closing on each change, and screen-reader users hear one checkbox per row. |
| Builder impact | Builders own the value; the row composes their click and pointer-move handlers with its own activation and hover focus. |
-| Compatibility/readiness | Records shipped behavior; no API, default, or DOM change. Enter keeping the menu open is listed under Current-state impact (OQ1). |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled row gains `tabindex="-1"` (FR3). Enter keeping the menu open is listed under Current-state impact (OQ1). |
| Review checks | Reject a nested announced checkbox, a row that closes by default, a dropped caller handler, or an activation while disabled. |
| Governing rules | `spec:AST-020` FR15; `architecture:public-component-api` INV5–INV8; `architecture:interaction-modality`. |
@@ -54,8 +54,8 @@ close lifecycle.
## Compatibility and migration
- Released default preserved: yes (`hasCloseOnSelect=false`).
-- Compatibility class: records shipped behavior; no public prop, default,
- export, or DOM change.
+- Compatibility class: records shipped behavior; no public prop or export
+ change; a disabled row gains `tabindex="-1"` (FR3).
- Controlled/uncontrolled behavior: controlled; `value` is caller-owned.
- Migration decision: none.
@@ -77,8 +77,7 @@ Consumer migration instructions belong in consumer docs and release notes.
- Focus entry, roving focus, typeahead, and Enter/Space click synthesis — owned
by `component:DropdownMenu`.
- Checkbox chrome — delegated to `component:Indicator`.
-- Whether disabled rows stay keyboard-discoverable — `component:DropdownMenu`
- OQ1.
+- How the keyboard reaches a disabled row — `component:DropdownMenu` FR17.
## Public concepts
@@ -94,10 +93,10 @@ Consumer migration instructions belong in consumer docs and release notes.
| --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| FR1 | The row renders one element with `role="menuitemcheckbox"` whose `aria-checked` equals `value`; the checkbox marker is decorative (`aria-hidden`), so the row is the only announced control. | `spec:AST-020` FR15; current source and tests |
| FR2 | An enabled activation, by pointer or by the parent's synthesized Enter/Space click, calls `onChange(!value)`, then closes the menu when `hasCloseOnSelect` is set, then calls the caller's `onClick`; without `hasCloseOnSelect` the menu stays open. The APG Menu pattern's Enter closes the menu, and `spec:AST-020` FR15 requires this record to name any required part it does not adopt. Implementation gap: Enter keeps the menu open by default, and no exception is named (OQ1). | `spec:AST-020` FR15; `architecture:public-component-api` INV7; current tests |
-| FR3 | A disabled row exposes `aria-disabled="true"`, renders no `tabindex`, and on activation calls neither `onChange` nor the caller's activation handlers. | Current source and tests |
+| FR3 | A disabled row exposes `aria-disabled="true"`, carries `tabindex="-1"` like an enabled row so the parent's keyboard model reaches it (`component:DropdownMenu` FR17), and on any activation calls neither `onChange` nor the caller's activation handlers and does not close the menu. Implementation gap: a disabled row renders no `tabindex` today. | Current source and tests |
| FR4 | Ref, supported host attributes and handlers, `className`, `style`, and `xstyle` reach or compose on the row root; caller `onPointerMove` composes with the row's hover focus. | `architecture:public-component-api` INV5–INV8; current tests |
| FR5 | The marker is the shared checkbox Indicator, `sm` in a small menu; the row carries the `dropdown-menu-item` target with the menu size. | `architecture:component-theming-surface`; current source and tests |
-| FR6 | The row adds no key handler or tab stop of its own: enabled rows are `tabindex="-1"` for the parent's roving focus, and the parent's arrow keys skip a disabled row (`component:DropdownMenu` FR17). | `architecture:interaction-modality`; parent tests |
+| FR6 | The row adds no key handler or tab stop of its own: every row, disabled included, is `tabindex="-1"` for the parent's roving focus, and the parent's keyboard reaches a disabled row (`component:DropdownMenu` FR17). | `architecture:interaction-modality`; parent tests |
### Allowed variation
@@ -160,14 +159,17 @@ anatomy-theming map.
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| FR1, AR1 | `DropdownMenuSelectable.test.tsx` "keeps the checkbox indicator decorative (row is the only announced control)"; "a ref reaches the menuitemcheckbox element" | Checked and unchecked | An announced marker or a row that is not `menuitemcheckbox` fails. | `audit:DropdownMenuCheckboxItem/semantics` |
| FR2, ORD1 | `DropdownMenuSelectable.test.tsx` "calls onChange with the toggled value on click", "composes the caller click handler with the checked-state change", "composes the caller click handler on keyboard activation", "closes after a successful toggle only when requested"; `DropdownMenu.test.tsx` "activates a focused menuitemradio with Enter and a menuitemcheckbox with Space" | Pointer and keyboard; close on and off | A wrong value, a dropped caller `onClick`, or a close without the opt-in fails. Evidence gap: no test asserts the `onChange`, close, `onClick` order. | `audit:DropdownMenuCheckboxItem/behavior` |
-| FR3, AR2 | `DropdownMenuSelectable.test.tsx` "does not call consumer activation handlers when disabled" and "does not toggle when disabled" | Disabled | A toggle or caller handler while disabled fails. Evidence gap: no test asserts the absent `tabindex`. | `audit:DropdownMenuCheckboxItem/behavior` |
+| FR3, AR2 | `DropdownMenuSelectable.test.tsx` "does not call consumer activation handlers when disabled" and "does not toggle when disabled" | Disabled | A toggle, a close, or a caller handler while disabled fails. Evidence gap: no test asserts the disabled row's `tabindex="-1"`. | `audit:DropdownMenuCheckboxItem/behavior` |
| FR4 | `DropdownMenuSelectable.test.tsx` "composes the caller pointer-move handler with menu hover focus" and "a ref reaches the menuitemcheckbox element" | Ref; pointer move | A dropped ref or handler fails. Evidence gap: no test asserts host attributes, `className`, `style`, or `xstyle` on the row. | `audit:DropdownMenuCheckboxItem/api` |
| FR5 | `DropdownMenuSelectable.test.tsx` "maps a small menu to the small shared checkbox marker" | Small menu | A marker that ignores the menu size fails. Evidence gap: no test asserts the `dropdown-menu-item` target on this row. | `audit:DropdownMenuCheckboxItem/theming` |
-| FR6 | `DropdownMenu.test.tsx` "arrow navigation reaches consumer-rendered menuitemradio and menuitemcheckbox items" and "skips aria-disabled menuitemradio and menuitemcheckbox items during arrow navigation" | Enabled and disabled rows | A row the arrows miss, or a disabled row they land on, fails. | `audit:DropdownMenuCheckboxItem/accessibility` |
+| FR6 | `DropdownMenu.test.tsx` "arrow navigation reaches consumer-rendered menuitemradio and menuitemcheckbox items" and the disabled-row keyboard cases (`component:DropdownMenu` FR17) | Enabled and disabled rows | A row the arrows miss, a disabled row they skip, or a disabled row that toggles or closes the menu fails. | `audit:DropdownMenuCheckboxItem/accessibility` |
| AR3, PR1 | `DropdownMenuForcedColors.test.tsx` (the row's `:focus-visible` ring and token inset); `DropdownMenuAudit.a11y.chromium.spec.ts` forced-colors frames. Evidence gap: no test asserts the listener bound | — | — | `audit:DropdownMenuCheckboxItem/behavior` |
## Current-state impact
+- **Disabled rows skipped (FR3, FR6).** A disabled row renders no `tabindex`, so
+ the parent's arrow keys and type-ahead skip it instead of reaching it as
+ `component:DropdownMenu` FR17 and DEC-11 state.
- **Enter keeps the menu open (FR2).** Enter on a checkbox row toggles it and
leaves the menu open by default, against the Menu pattern's Enter that
`spec:AST-020` FR15 adopts, with no named exception (OQ1).
diff --git a/docs/specs/components/DropdownMenu/DropdownMenuItem.spec.md b/docs/specs/components/DropdownMenu/DropdownMenuItem.spec.md
index 35f3766c4a..4ca2dfe852 100644
--- a/docs/specs/components/DropdownMenu/DropdownMenuItem.spec.md
+++ b/docs/specs/components/DropdownMenu/DropdownMenuItem.spec.md
@@ -42,7 +42,7 @@ system_specs: [spec:AST-020]
| Behavior | The parent menu owns roving focus and keyboard activation; the row owns click order, disabled suppression, close-on-select, destination handoff, hover focus, and its visible content composition. |
| End-user impact | Actions and destinations preserve keyboard, pointer, and browser link behavior while unavailable rows remain inert and destructive actions remain identifiable. |
| Builder impact | Destinations use `href`; supporting content stays non-interactive; `hasCloseOnSelect=false` is reserved for in-place result feedback. |
-| Compatibility/readiness | Records shipped behavior; no API, default, or DOM change. |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled row gains `tabindex="-1"` (FR7). |
| Review checks | Reject nested controls, disabled activation, lost destination safety, broken modified-click behavior, dropped root inputs, a second keyboard owner, or state/target reflection moved off the row. |
| Governing rules | `family:navigation-destinations/FR1–FR5`; `architecture:public-component-api/INV5–INV9`; `architecture:component-theming-surface/INV3–INV6`; `spec:AST-020/FR1,FR2,FR6,FR15`. |
@@ -60,8 +60,8 @@ lifecycle.
## Compatibility and migration
- Released default preserved: yes.
-- Compatibility class: records shipped behavior; no public prop, default,
- export, or DOM change.
+- Compatibility class: records shipped behavior; no public prop or export
+ change; a disabled row gains `tabindex="-1"` (FR7).
- Controlled/uncontrolled behavior: not applicable.
- Migration decision: none.
@@ -91,13 +91,13 @@ Consumer migration instructions belong in consumer docs and release notes.
## Public concepts
-| Concept | Closed values or states | Meaning | Availability | Default | Owner | Stability | Invalid-value behavior |
-| ------------ | --------------------------------------------------- | ------------------------------------------------------------------------------ | --------------------------- | ------- | ------------------------------- | --------- | ------------------------------------------------------------ |
-| Row act | action; destination | Runs a callback or exposes a browser/router destination from the row itself. | Every enabled row | action | component and navigation family | stable | A blocked destination is inert; a disabled link has no href. |
-| Availability | enabled; disabled | Controls whether the row can receive focus or activate. | Every row | enabled | component and parent menu | stable | Disabled suppresses activation and destination. |
-| Close policy | close; remain open | Whether successful activation closes the parent menu. | Action and destination rows | close | component | stable | Omission closes. |
-| Visual state | default; destructive; hover; focus; press; disabled | Paints row meaning and interaction state without changing menuitem semantics. | Pointer row | default | component | stable | Unknown variants are rejected by the public type. |
-| Root surface | ref; DOM/data/ARIA; class/style/xstyle/events | Extends the row root while preserving component-owned role and keyboard state. | Every pointer row | omitted | public component API | stable | Accepted inputs compose; owned role/tab stop remain fixed. |
+| Concept | Closed values or states | Meaning | Availability | Default | Owner | Stability | Invalid-value behavior |
+| ------------ | --------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------- | ------- | ------------------------------- | --------- | ------------------------------------------------------------------- |
+| Row act | action; destination | Runs a callback or exposes a browser/router destination from the row itself. | Every enabled row | action | component and navigation family | stable | A blocked destination is inert; a disabled link has no href. |
+| Availability | enabled; disabled | Controls whether the row can activate; a disabled row still takes keyboard focus (FR7). | Every row | enabled | component and parent menu | stable | Disabled suppresses activation and destination, not keyboard focus. |
+| Close policy | close; remain open | Whether successful activation closes the parent menu. | Action and destination rows | close | component | stable | Omission closes. |
+| Visual state | default; destructive; hover; focus; press; disabled | Paints row meaning and interaction state without changing menuitem semantics. | Pointer row | default | component | stable | Unknown variants are rejected by the public type. |
+| Root surface | ref; DOM/data/ARIA; class/style/xstyle/events | Extends the row root while preserving component-owned role and keyboard state. | Every pointer row | omitted | public component API | stable | Accepted inputs compose; owned role/tab stop remain fixed. |
## Behavioral and layout contract
@@ -109,7 +109,7 @@ Consumer migration instructions belong in consumer docs and release notes.
| FR4 | The parent menu is the only keyboard owner. It synthesizes click activation with modifiers, moves focus, and runs typeahead; the row focuses itself on mouse hover and creates no second roving-focus model. | `architecture:interaction-modality`; current parent tests |
| FR5 | The visible root carries `dropdown-menu-item`; size and destructive state reflect on it (`data-size`, `data-variant`); semantic tokens own layout and paint before caller styling inputs compose. | `architecture:component-theming-surface`; current source and tests |
| FR6 | Ref, supported host attributes and handlers, `className`, `style`, and `xstyle` reach or compose on the row root without replacing owned role, tab stop, disabled behavior, destination handling, or activation order. | `architecture:public-component-api` INV5–INV9; current tests |
-| FR7 | Disabled menu rows are inert, and the parent menu's arrow keys and typeahead skip them. Shipped behavior, not a requirement until OQ1 is ruled. | `component:DropdownMenu` FR17, OQ1 |
+| FR7 | Disabled menu rows remain inert, and the parent menu's keyboard reaches them as `component:DropdownMenu` FR17 states. | `component:DropdownMenu` FR17, DEC-11 |
| FR8 | Keyboard focus draws the shared focus ring inside the row, inset by the ring's own width, in every color mode; forced colors keep that ring as the focus indicator. After pointer input the row shows only its hover background (`architecture:interaction-modality` INV1), or the pressed overlay while a held finger or pen lights it (`spec:AST-094` FR27); the focused row owns the indicator (INV3). | Current source; `architecture:interaction-modality` INV1, INV3 |
### Allowed variation
@@ -188,13 +188,15 @@ No component-local visual decision is recorded.
| FR4, AR3 | `DropdownMenu.test.tsx` keyboard-access cases ("moves focus to the item the mouse hovers, keeping a single highlight", "does not move focus on hover for a disabled item", "does not move focus for a non-mouse (touch) pointer") and "keeps the row's own role, tab stop and hover focus beside a caller's onPointerMove" | Mouse hover, touch, disabled | A second highlight, hover focus on a disabled row or under touch, or a lost tab stop fails. | `audit:DropdownMenuItem/accessibility` |
| FR5 | `DropdownMenu.test.tsx` destructive-variant cases; `themingTargets.test.ts` | Default and destructive; data and compound mode | A missing `data-variant` fails; a rendered class absent from the documented targets fails. Evidence gap: no test asserts the `dropdown-menu-item` class or `data-size`. | `audit:DropdownMenuItem/theming` |
| FR6 | `DropdownMenu.test.tsx` ref and host-attribute cases ("a ref reaches the menuitem element", "puts aria-\*, data-\* and id on the row root, a link row included", "runs the DOM handlers the caller attaches, such as a drop target") | Ref; host attributes; caller handlers | A dropped ref, attribute, or handler fails. Evidence gap: no test asserts `className`, `style`, or `xstyle` on the row. | `audit:DropdownMenuItem/api` |
-| FR7 | `DropdownMenu.test.tsx` "skips aria-disabled menuitemradio and menuitemcheckbox items during arrow navigation" (the shipped behavior OQ1 leaves open) | Disabled rows | A disabled row that activates fails. | `audit:DropdownMenuItem/accessibility` |
+| FR7 | `DropdownMenu.test.tsx` disabled-row keyboard cases (`component:DropdownMenu` FR17) | Disabled rows | A disabled row that activates, closes the menu, or is skipped by the parent's arrow keys or type-ahead fails. | `audit:DropdownMenuItem/accessibility` |
| FR8, AR4, PR1 | `DropdownMenuForcedColors.test.tsx` (each row's `:focus-visible` ring and token inset); `DropdownMenuAudit.a11y.chromium.spec.ts` forced-colors frames | Action and destructive rows; light, dark, forced colors | A row without the ring after keyboard input, or a ring not inset by the ring width, fails. Evidence gap: no test asserts the listener bound. | `audit:DropdownMenuItem/visual` |
| RTL | `apps/storybook/rtl-audit/verified-not-applicable.json` DropdownMenuItem entry | LTR and RTL | A changed source hash fails the receipt. | `audit:DropdownMenuItem/rtl` |
## Current-state impact
-No known difference between shipped behavior and this contract.
+- **Disabled rows skipped (FR7).** A disabled row renders no `tabIndex`, so the
+ parent's arrow keys and type-ahead skip it instead of reaching it as
+ `component:DropdownMenu` FR17 and DEC-11 state.
## Decision log
@@ -202,8 +204,7 @@ No component-local decision.
## Open questions
-- **OQ1 — Which shared keyboard owner should keep disabled menu items discoverable
- while preserving their inert behavior?** (`human-api`)
+None.
## Content boundary
diff --git a/docs/specs/components/DropdownMenu/DropdownMenuRadioItem.spec.md b/docs/specs/components/DropdownMenu/DropdownMenuRadioItem.spec.md
index 6b1d666fde..7f8ef220e2 100644
--- a/docs/specs/components/DropdownMenu/DropdownMenuRadioItem.spec.md
+++ b/docs/specs/components/DropdownMenu/DropdownMenuRadioItem.spec.md
@@ -43,7 +43,7 @@ system_specs: [spec:AST-020]
| Behavior | Enabled activation emits the row value through the group, applies the group close policy, then runs the caller click handler; disabled activation does none of these. |
| End-user impact | Assistive technology hears one radio option with its checked state; pointer and keyboard selection commit the same value, and a disabled option cannot be chosen. |
| Builder impact | Place the row inside a DropdownMenuRadioGroup and give it a unique value and a label; caller handlers run alongside the row's own behavior. |
-| Compatibility/readiness | Records shipped behavior; no API, default, or DOM change. |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled row gains `tabindex="-1"` (FR4). |
| Review checks | Reject a nested semantic radio, a second keyboard owner, local selection state, a dropped caller input, or disabled activation that selects, closes, or calls the caller click handler. |
| Governing rules | `spec:AST-020` FR15; `architecture:public-component-api/INV5–INV8`; `architecture:component-theming-surface/INV4–INV6`; `spec:AST-020/FR1,FR2`. |
@@ -61,8 +61,8 @@ activation, and the menu lifecycle.
## Compatibility and migration
- Released default preserved: yes (`isDisabled=false`).
-- Compatibility class: records shipped behavior; no public prop, default,
- export, or DOM change.
+- Compatibility class: records shipped behavior; no public prop or export
+ change; a disabled row gains `tabindex="-1"` (FR4).
- Controlled behavior: the checked state always derives from the group `value`;
the row holds no selection state.
- Migration decision: none.
@@ -105,16 +105,16 @@ Consumer migration instructions belong in consumer docs and release notes.
## Behavioral and layout contract
-| ID | Invariant | Basis |
-| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
-| FR1 | The row renders one element with `role="menuitemradio"` whose `aria-checked` is true exactly when the group value equals the row value. It nests no native or ARIA radio. | `spec:AST-020`; current source and tests |
-| FR2 | Rendering the row outside a DropdownMenuRadioGroup throws. | Current source and focused tests |
-| FR3 | Enabled activation, by pointer or by the parent's synthesized Enter/Space click, calls the group `onChange` with the row value, then asks DropdownMenu to close when the group's close policy is on, then calls the caller `onClick`. | `architecture:public-component-api` INV7; current behavior and tests |
-| FR4 | A disabled row exposes `aria-disabled="true"`, renders no `tabindex`, takes no hover focus, and on any activation, including an assistive-technology click, calls neither `onChange` nor the caller `onClick` and does not close the menu. It paints at half opacity with a default cursor. | Current source and tests |
-| FR5 | Ref, supported host attributes and handlers, `className`, `style`, and `xstyle` reach or compose on the row root. Caller `onPointerMove` runs after the row's hover focus, and caller handlers do not replace the row's own behavior. | `architecture:public-component-api` INV5–INV8; current tests |
-| FR6 | The marker is the shared radio Indicator, hidden from assistive technology, never the pointer target, sized `sm` in a small menu and `md` otherwise, at the row's inline start on a fine pointer and its inline end on a coarse pointer. | Current source and tests |
-| FR7 | The row carries the `dropdown-menu-item` target with the menu size and the marker carries the `dropdown-menu-radio` target with size, checked, and disabled reflections. | `architecture:component-theming-surface`; current source and docs |
-| FR8 | The row adds no key handler or tab stop of its own: enabled rows are `tabindex="-1"` for the parent's roving focus, and keyboard selection arrives as the parent's synthesized click. | `architecture:interaction-modality`; parent keyboard tests |
+| ID | Invariant | Basis |
+| --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
+| FR1 | The row renders one element with `role="menuitemradio"` whose `aria-checked` is true exactly when the group value equals the row value. It nests no native or ARIA radio. | `spec:AST-020`; current source and tests |
+| FR2 | Rendering the row outside a DropdownMenuRadioGroup throws. | Current source and focused tests |
+| FR3 | Enabled activation, by pointer or by the parent's synthesized Enter/Space click, calls the group `onChange` with the row value, then asks DropdownMenu to close when the group's close policy is on, then calls the caller `onClick`. | `architecture:public-component-api` INV7; current behavior and tests |
+| FR4 | A disabled row exposes `aria-disabled="true"`, carries `tabindex="-1"` like an enabled row so the parent's keyboard model reaches it (`component:DropdownMenu` FR17), takes no hover focus, and on any activation, including an assistive-technology click, calls neither `onChange` nor the caller `onClick` and does not close the menu. It paints at half opacity with a default cursor. Implementation gap: a disabled row renders no `tabindex` today. | Current source and tests |
+| FR5 | Ref, supported host attributes and handlers, `className`, `style`, and `xstyle` reach or compose on the row root. Caller `onPointerMove` runs after the row's hover focus, and caller handlers do not replace the row's own behavior. | `architecture:public-component-api` INV5–INV8; current tests |
+| FR6 | The marker is the shared radio Indicator, hidden from assistive technology, never the pointer target, sized `sm` in a small menu and `md` otherwise, at the row's inline start on a fine pointer and its inline end on a coarse pointer. | Current source and tests |
+| FR7 | The row carries the `dropdown-menu-item` target with the menu size and the marker carries the `dropdown-menu-radio` target with size, checked, and disabled reflections. | `architecture:component-theming-surface`; current source and docs |
+| FR8 | The row adds no key handler or tab stop of its own: every row, disabled included, is `tabindex="-1"` for the parent's roving focus, and keyboard selection arrives as the parent's synthesized click. | `architecture:interaction-modality`; parent keyboard tests |
### Allowed variation
@@ -159,8 +159,8 @@ Consumer migration instructions belong in consumer docs and release notes.
- **AR2 — Disabled state.** A disabled row exposes `aria-disabled` and cannot
commit a value through any input.
- **AR3 — Keyboard ownership.** DropdownMenu owns focus movement and activation;
- the row adds no key handling. Whether disabled rows stay keyboard-discoverable
- is owned by `component:DropdownMenu` (its OQ1).
+ the row adds no key handling. The keyboard reaches a disabled row as
+ `component:DropdownMenu` FR17 states.
- **AR4 — Focus visibility.** Keyboard focus draws the shared focus ring
inside the row, inset by the ring's own width, in every color mode, forced
colors included; after pointer input the row shows only the overlay tint
@@ -182,8 +182,8 @@ No component-local visual decision is recorded.
- `component:DropdownMenuRadioGroup` owns value, change callback, and close policy.
- `component:DropdownMenu` owns keyboard navigation, the press model, the
- `dropdown-menu-item` and `dropdown-menu-radio` target inventory, disabled
- keyboard discoverability (its OQ1), and the shared row focus treatment
+ `dropdown-menu-item` and `dropdown-menu-radio` target inventory, disabled-row
+ keyboard reach (its FR17), and the shared row focus treatment
together with `component:DropdownMenuItem` (its FR8).
- `architecture:public-component-api` owns root input and handler composition.
- `architecture:component-theming-surface` owns target placement and state
@@ -193,19 +193,21 @@ No component-local visual decision is recorded.
## Verification map
-| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
-| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
-| FR1, AR1 | `DropdownMenuSelectable.test.tsx` "renders the shared radio indicator in the menu marker" and "composes caller root inputs without replacing the row semantics"; `Menu.a11y.test.tsx` menu binding cases | Checked and unchecked | A row that is not `menuitemradio` or a wrong `aria-checked` fails. Evidence gap: no test asserts the absence of a nested radio. | `audit:DropdownMenuRadioItem/semantics` |
-| FR2 | `DropdownMenuSelectable.test.tsx` "throws when a radio item is used outside a group" | Outside a group | A row that renders outside a group fails. | `audit:DropdownMenuRadioItem/behavior` |
-| FR3, FR8 | `DropdownMenuSelectable.test.tsx` "calls onChange with the selected value", "composes the caller click handler with the selection", "composes the caller click handler on keyboard activation", "keeps the menu open while controlled selection updates when requested"; `DropdownMenu.test.tsx` "activates a focused menuitemradio with Enter and a menuitemcheckbox with Space" | Pointer and keyboard activation; close off | A missing `onChange`, a dropped caller `onClick`, or a close despite the opt-out fails. Evidence gap: no test asserts the `onChange`, close, `onClick` order or the `tabindex="-1"` on enabled rows. | `audit:DropdownMenuRadioItem/behavior` |
-| FR4, AR2 | `DropdownMenuSelectable.test.tsx` "does not select, close, or call the caller click handler when disabled"; `DropdownMenu.test.tsx` "does not move focus on hover for a disabled item" | Disabled | A selection, close, or caller `onClick` while disabled, or hover focus on a disabled row, fails. Evidence gap: no test asserts the absent `tabindex` or the half-opacity paint. | `audit:DropdownMenuRadioItem/behavior` |
-| FR5 | `DropdownMenuSelectable.test.tsx` "composes caller root inputs without replacing the row semantics", "composes the caller pointer-move handler with menu hover focus", and "a ref reaches the menuitemradio element" | Ref, host attributes, class, style, pointer move | A dropped ref, attribute, class, style, or handler fails. Evidence gap: no test asserts `xstyle` on the row. | `audit:DropdownMenuRadioItem/api` |
-| FR6, FR7 | `DropdownMenuSelectable.test.tsx` "renders the shared radio indicator in the menu marker"; `DropdownMenuRadioItemAudit.a11y.chromium.spec.ts` | Marker in the row | A missing shared radio marker fails. Evidence gap: no test asserts the marker size by menu size, its fine and coarse placement, or the `dropdown-menu-radio` reflections. | `audit:DropdownMenuRadioItem/visual` |
-| AR4, PR1 | `DropdownMenuForcedColors.test.tsx` (the row's `:focus-visible` ring and token inset); `DropdownMenuAudit.a11y.chromium.spec.ts` forced-colors frames. Evidence gap: no test asserts the absence of lifecycle resources | — | — | `audit:DropdownMenuRadioItem/visual` |
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
+| FR1, AR1 | `DropdownMenuSelectable.test.tsx` "renders the shared radio indicator in the menu marker" and "composes caller root inputs without replacing the row semantics"; `Menu.a11y.test.tsx` menu binding cases | Checked and unchecked | A row that is not `menuitemradio` or a wrong `aria-checked` fails. Evidence gap: no test asserts the absence of a nested radio. | `audit:DropdownMenuRadioItem/semantics` |
+| FR2 | `DropdownMenuSelectable.test.tsx` "throws when a radio item is used outside a group" | Outside a group | A row that renders outside a group fails. | `audit:DropdownMenuRadioItem/behavior` |
+| FR3, FR8 | `DropdownMenuSelectable.test.tsx` "calls onChange with the selected value", "composes the caller click handler with the selection", "composes the caller click handler on keyboard activation", "keeps the menu open while controlled selection updates when requested"; `DropdownMenu.test.tsx` "activates a focused menuitemradio with Enter and a menuitemcheckbox with Space" | Pointer and keyboard activation; close off | A missing `onChange`, a dropped caller `onClick`, or a close despite the opt-out fails. Evidence gap: no test asserts the `onChange`, close, `onClick` order or the `tabindex="-1"` on enabled rows. | `audit:DropdownMenuRadioItem/behavior` |
+| FR4, AR2 | `DropdownMenuSelectable.test.tsx` "does not select, close, or call the caller click handler when disabled"; `DropdownMenu.test.tsx` "does not move focus on hover for a disabled item" | Disabled | A selection, close, or caller `onClick` while disabled, or hover focus on a disabled row, fails. Evidence gap: no test asserts the disabled row's `tabindex="-1"`, that the parent's keyboard reaches it (`component:DropdownMenu` FR17), or the half-opacity paint. | `audit:DropdownMenuRadioItem/behavior` |
+| FR5 | `DropdownMenuSelectable.test.tsx` "composes caller root inputs without replacing the row semantics", "composes the caller pointer-move handler with menu hover focus", and "a ref reaches the menuitemradio element" | Ref, host attributes, class, style, pointer move | A dropped ref, attribute, class, style, or handler fails. Evidence gap: no test asserts `xstyle` on the row. | `audit:DropdownMenuRadioItem/api` |
+| FR6, FR7 | `DropdownMenuSelectable.test.tsx` "renders the shared radio indicator in the menu marker"; `DropdownMenuRadioItemAudit.a11y.chromium.spec.ts` | Marker in the row | A missing shared radio marker fails. Evidence gap: no test asserts the marker size by menu size, its fine and coarse placement, or the `dropdown-menu-radio` reflections. | `audit:DropdownMenuRadioItem/visual` |
+| AR4, PR1 | `DropdownMenuForcedColors.test.tsx` (the row's `:focus-visible` ring and token inset); `DropdownMenuAudit.a11y.chromium.spec.ts` forced-colors frames. Evidence gap: no test asserts the absence of lifecycle resources | — | — | `audit:DropdownMenuRadioItem/visual` |
## Current-state impact
-No known difference between shipped behavior and this contract.
+- **Disabled rows skipped (FR4, FR8).** A disabled row renders no `tabindex`, so
+ the parent's arrow keys and type-ahead skip it instead of reaching it as
+ `component:DropdownMenu` FR17 and DEC-11 state.
## Decision log
diff --git a/docs/specs/components/DropdownMenu/DropdownMenuSubMenu.spec.md b/docs/specs/components/DropdownMenu/DropdownMenuSubMenu.spec.md
index 1e55493170..a5a13d6407 100644
--- a/docs/specs/components/DropdownMenu/DropdownMenuSubMenu.spec.md
+++ b/docs/specs/components/DropdownMenu/DropdownMenuSubMenu.spec.md
@@ -46,7 +46,7 @@ system_specs: [spec:AST-020, spec:AST-086]
| Behavior | The row reveals its children as a flyout beside it or as a drilled-in view led by a Back row; with a header or footer that surface is a modal dialog named by the row. |
| End-user impact | Pointer, keyboard, and touch users reach nested commands from one row; assistive technology hears the row's popup kind and expanded state, and Escape or the close arrow returns to the row. |
| Builder impact | Place the row inside a DropdownMenu or ContextMenu and give it a label and rows; data-driven menus get it from a nested `items` array. |
-| Compatibility/readiness | Records shipped behavior; no API, default, or DOM change. |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled row gains `tabindex="-1"` (FR7). |
| Review checks | Reject a second keyboard owner, a lost popup state, a flyout that does not flip under RTL, a disabled row that opens, dropped caller inputs, or an open callback that misses a transition. |
| Governing rules | `spec:AST-020` FR15; `architecture:public-component-api/INV5–INV8`; `architecture:react-component-runtime/INV2`; `architecture:layer-runtime`; `spec:AST-020/FR1,FR2`; `spec:AST-086/FR8`. |
@@ -66,8 +66,8 @@ host that a sub-menu with a header or footer renders into.
- Released default preserved: yes (`isDisabled=false`, `hasSpinner=false`,
`presentation='adaptive'`).
-- Compatibility class: records shipped behavior; no public prop, default,
- export, or DOM change.
+- Compatibility class: records shipped behavior; no public prop or export
+ change; a disabled row gains `tabindex="-1"` (FR7).
- Controlled behavior: the open state is internal; `onOpenChange` reports it.
- Migration decision: none.
@@ -108,17 +108,17 @@ Consumer migration instructions belong in consumer docs and release notes.
## Behavioral and layout contract
-| ID | Invariant | Basis |
-| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
-| FR1 | The row exposes `role="menuitem"`, `aria-haspopup="menu"` (`"dialog"` with a header or footer), `aria-expanded` matching its surface, and `aria-controls` naming the surface while open. The surface is labelled by the row. | `spec:AST-020`; current source and tests |
-| FR2 | A click, Enter, Space, or the inline-end arrow (inline-start under RTL) opens the surface; a keyboard open focuses its first row. Escape or the close arrow closes only this level and returns focus to the row. A hover opens a flyout after an intent delay. | `spec:AST-020`; `architecture:interaction-modality`; current tests |
-| FR3 | A flyout sits beside the row on the inline-end side, flips with direction, and stays within the viewport; its block size caps at the smaller of its own cap and the viewport. | `architecture:layer-runtime`; current source |
-| FR4 | A drilled-in view replaces the root's rows with a Back row named after the parent menu and then this row's children; Back, Escape, and the close arrow return to the row. | Current source and focused tests |
-| FR5 | Selecting a leaf row inside the surface closes every level and the root menu. | Current source and tests |
-| FR6 | `onOpenChange` MUST report `true` once when the surface opens and `false` once when it closes, from the action that caused the change. Implementation gap: a drilled-in view reset by the root menu closing reports no `false` (OQ1). | Documented promise; `architecture:react-component-runtime` INV2 |
-| FR7 | A disabled row exposes `aria-disabled="true"`, renders no `tabindex`, takes no hover focus, opens on no input, and runs no caller `onClick`. | Current source and tests |
-| FR8 | With `hasSpinner` the row shows a decorative spinner in place of the caret and announces the busy start once the root menu shows. | `spec:AST-086` FR8; current source and tests |
-| FR9 | Ref, supported host attributes and handlers, `className`, `style`, and `xstyle` reach or compose on the row root after the row's own behavior; the open keys and a disabled click stop before the caller's handler. | `architecture:public-component-api` INV5–INV8; current tests |
+| ID | Invariant | Basis |
+| --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
+| FR1 | The row exposes `role="menuitem"`, `aria-haspopup="menu"` (`"dialog"` with a header or footer), `aria-expanded` matching its surface, and `aria-controls` naming the surface while open. The surface is labelled by the row. | `spec:AST-020`; current source and tests |
+| FR2 | A click, Enter, Space, or the inline-end arrow (inline-start under RTL) opens the surface; a keyboard open focuses its first enabled row. Escape or the close arrow closes only this level and returns focus to the row. A hover opens a flyout after an intent delay. | `spec:AST-020`; `architecture:interaction-modality`; current tests |
+| FR3 | A flyout sits beside the row on the inline-end side, flips with direction, and stays within the viewport; its block size caps at the smaller of its own cap and the viewport. | `architecture:layer-runtime`; current source |
+| FR4 | A drilled-in view replaces the root's rows with a Back row named after the parent menu and then this row's children; Back, Escape, and the close arrow return to the row. | Current source and focused tests |
+| FR5 | Selecting a leaf row inside the surface closes every level and the root menu. | Current source and tests |
+| FR6 | `onOpenChange` MUST report `true` once when the surface opens and `false` once when it closes, from the action that caused the change. Implementation gap: a drilled-in view reset by the root menu closing reports no `false` (OQ1). | Documented promise; `architecture:react-component-runtime` INV2 |
+| FR7 | A disabled row exposes `aria-disabled="true"`, carries `tabindex="-1"` so the parent's keyboard model reaches it (`component:DropdownMenu` FR17), takes no hover focus, opens on no input, and runs no caller `onClick`. Implementation gap: a disabled row renders no `tabindex` today. | Current source and tests |
+| FR8 | With `hasSpinner` the row shows a decorative spinner in place of the caret and announces the busy start once the root menu shows. | `spec:AST-086` FR8; current source and tests |
+| FR9 | Ref, supported host attributes and handlers, `className`, `style`, and `xstyle` reach or compose on the row root after the row's own behavior; the open keys and a disabled click stop before the caller's handler. | `architecture:public-component-api` INV5–INV8; current tests |
### Allowed variation
@@ -160,8 +160,8 @@ Consumer migration instructions belong in consumer docs and release notes.
are exposed through ARIA; its caret and spinner are decorative.
- **AR2 — Level-scoped keys.** Each level owns its own arrows, typeahead, and
Escape; a deeper level's keys never act on its parent.
-- **AR3 — Disabled discoverability.** Whether disabled rows stay
- keyboard-discoverable is owned by `component:DropdownMenu` (its OQ1).
+- **AR3 — Disabled discoverability.** The keyboard reaches a disabled row as
+ `component:DropdownMenu` FR17 states.
- **AR4 — Focus visibility.** Keyboard focus draws the shared focus ring
inside the row, inset by the ring's own width, in every color mode, forced
colors included; after pointer input the row shows only the overlay tint
@@ -184,8 +184,8 @@ No component-local visual decision is recorded.
- `component:DropdownMenu` owns the root surface, the drill-in stack, the
surface host, the `dropdown-menu`, `dropdown-menu-item`, and
- `dropdown-menu-indicator-icon` target inventory, and disabled keyboard
- discoverability (its OQ1).
+ `dropdown-menu-indicator-icon` target inventory, and disabled-row keyboard
+ reach (its FR17).
- `architecture:layer-runtime` owns flyout placement, flipping, and insets.
- `architecture:public-component-api` owns root input and handler composition.
- `architecture:react-component-runtime` owns callback timing.
@@ -193,20 +193,23 @@ No component-local visual decision is recorded.
## Verification map
-| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
-| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
-| FR1, AR1 | `DropdownMenuSubMenu.test.tsx` "renders the trigger with aria-haspopup and collapsed aria-expanded", "names the flyout from its trigger via aria-labelledby", "the row keeps its own popup state and tab stop"; header-and-footer case "holds the header, the rows and the footer in a dialog named by the row, outside every menu" | Closed and open; with regions | A missing `aria-haspopup`, `aria-expanded`, or row label on the surface fails. Evidence gap: no test asserts `aria-controls` while open. | `audit:DropdownMenuSubMenu/semantics` |
-| FR2, AR2 | `DropdownMenuSubMenu.test.tsx` "opens the flyout on trigger click and exposes its items", "opens on ArrowRight and returns focus to the trigger on ArrowLeft", "mirrors its indicator and keyboard directions under RTL", "closes only the submenu on Escape and restores focus to the trigger", "supports first-character type-ahead within the flyout", "navigates a two-level nested submenu without double-stepping", "moves focus to the submenu trigger on hover, keeping a single highlight"; hover/click-guard cases | Click, arrows, RTL, Escape, hover, nesting | A key that does not open or close, a wrong focus target, a double-stepped level, or a reversed RTL arrow fails. Evidence gap: no test asserts Enter or Space opening the row. | `audit:DropdownMenuSubMenu/accessibility` |
-| FR3 | `DropdownMenuSubMenu.test.tsx` "caps the flyout width and height to the available viewport"; `apps/storybook/rtl-audit/targets.json` DropdownMenuSubMenu entry | Viewport cap; RTL | A flyout that escapes the viewport fails. Evidence gap: no test asserts the inline-end placement or its flip. | `audit:DropdownMenuSubMenu/layout` |
-| FR4 | `DropdownMenuSubMenu.test.tsx` drill-in cases; `DropdownMenuDrillIn.a11y.chromium.spec.ts` | Drilled view; Back | A missing Back row or a Back that does not return fails. | `audit:DropdownMenuSubMenu/behavior` |
-| FR5 | `DropdownMenuSubMenu.test.tsx` "closes the whole menu after selecting a nested item" and "activates a nested item with the Enter key and closes the menu" | Pointer and Enter | A level left open after a leaf pick fails. | `audit:DropdownMenuSubMenu/behavior` |
-| FR6 | `DropdownMenuSubMenu.test.tsx` "reports each flyout open and close to onOpenChange once" | Flyout open and close | A missing or repeated report fails. Evidence gap: the drill-in reset gap is not asserted. | `audit:DropdownMenuSubMenu/behavior` |
-| FR7, FR9 | `DropdownMenuSubMenu.test.tsx` "does not open a disabled submenu", "a disabled row does not pass a click on to the caller's onClick", host-attribute and ref cases ("aria-\*, data-\* and id reach the trigger row, and the flyout stays labelled by it", "a ref reaches the trigger row", "a caller's handlers run after the row's own, and the row still opens and takes the hover focus") | Disabled; caller handlers and attributes | A disabled open or caller click, or a dropped attribute, ref, or handler, fails. Evidence gap: no test asserts `className`, `style`, or `xstyle` on the row. | `audit:DropdownMenuSubMenu/api` |
-| FR8 | `BusyOwnerAnnouncement.test.tsx` "DropdownMenuSubMenu loading state" cases; `DropdownMenuSubMenu.test.tsx` loading-flyout cases | Loading closed and open | A busy start announced while closed, twice, or not at all, or an announced Spinner, fails. | `audit:DropdownMenuSubMenu/accessibility` |
-| AR4, PR1 | `DropdownMenuForcedColors.test.tsx` (the row's `:focus-visible` ring and token inset); `DropdownMenuAudit.a11y.chromium.spec.ts` forced-colors frames. Evidence gap: no test asserts the timer bounds | — | — | `audit:DropdownMenuSubMenu/visual` |
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- |
+| FR1, AR1 | `DropdownMenuSubMenu.test.tsx` "renders the trigger with aria-haspopup and collapsed aria-expanded", "names the flyout from its trigger via aria-labelledby", "the row keeps its own popup state and tab stop"; header-and-footer case "holds the header, the rows and the footer in a dialog named by the row, outside every menu" | Closed and open; with regions | A missing `aria-haspopup`, `aria-expanded`, or row label on the surface fails. Evidence gap: no test asserts `aria-controls` while open. | `audit:DropdownMenuSubMenu/semantics` |
+| FR2, AR2 | `DropdownMenuSubMenu.test.tsx` "opens the flyout on trigger click and exposes its items", "opens on ArrowRight and returns focus to the trigger on ArrowLeft", "mirrors its indicator and keyboard directions under RTL", "closes only the submenu on Escape and restores focus to the trigger", "supports first-character type-ahead within the flyout", "navigates a two-level nested submenu without double-stepping", "moves focus to the submenu trigger on hover, keeping a single highlight"; hover/click-guard cases | Click, arrows, RTL, Escape, hover, nesting | A key that does not open or close, a wrong focus target, a double-stepped level, or a reversed RTL arrow fails. Evidence gap: no test asserts Enter or Space opening the row. | `audit:DropdownMenuSubMenu/accessibility` |
+| FR3 | `DropdownMenuSubMenu.test.tsx` "caps the flyout width and height to the available viewport"; `apps/storybook/rtl-audit/targets.json` DropdownMenuSubMenu entry | Viewport cap; RTL | A flyout that escapes the viewport fails. Evidence gap: no test asserts the inline-end placement or its flip. | `audit:DropdownMenuSubMenu/layout` |
+| FR4 | `DropdownMenuSubMenu.test.tsx` drill-in cases; `DropdownMenuDrillIn.a11y.chromium.spec.ts` | Drilled view; Back | A missing Back row or a Back that does not return fails. | `audit:DropdownMenuSubMenu/behavior` |
+| FR5 | `DropdownMenuSubMenu.test.tsx` "closes the whole menu after selecting a nested item" and "activates a nested item with the Enter key and closes the menu" | Pointer and Enter | A level left open after a leaf pick fails. | `audit:DropdownMenuSubMenu/behavior` |
+| FR6 | `DropdownMenuSubMenu.test.tsx` "reports each flyout open and close to onOpenChange once" | Flyout open and close | A missing or repeated report fails. Evidence gap: the drill-in reset gap is not asserted. | `audit:DropdownMenuSubMenu/behavior` |
+| FR7, FR9 | `DropdownMenuSubMenu.test.tsx` "does not open a disabled submenu", "a disabled row does not pass a click on to the caller's onClick", host-attribute and ref cases ("aria-\*, data-\* and id reach the trigger row, and the flyout stays labelled by it", "a ref reaches the trigger row", "a caller's handlers run after the row's own, and the row still opens and takes the hover focus") | Disabled; caller handlers and attributes | A disabled open or caller click, or a dropped attribute, ref, or handler, fails. Evidence gap: no test asserts `className`, `style`, or `xstyle` on the row, a disabled row's `tabindex="-1"`, or that the parent's keyboard reaches it (`component:DropdownMenu` FR17). | `audit:DropdownMenuSubMenu/api` |
+| FR8 | `BusyOwnerAnnouncement.test.tsx` "DropdownMenuSubMenu loading state" cases; `DropdownMenuSubMenu.test.tsx` loading-flyout cases | Loading closed and open | A busy start announced while closed, twice, or not at all, or an announced Spinner, fails. | `audit:DropdownMenuSubMenu/accessibility` |
+| AR4, PR1 | `DropdownMenuForcedColors.test.tsx` (the row's `:focus-visible` ring and token inset); `DropdownMenuAudit.a11y.chromium.spec.ts` forced-colors frames. Evidence gap: no test asserts the timer bounds | — | — | `audit:DropdownMenuSubMenu/visual` |
## Current-state impact
+- **Disabled rows skipped (FR7).** A disabled row renders no `tabindex`, so the
+ parent's arrow keys and type-ahead skip it instead of reaching it as
+ `component:DropdownMenu` FR17 and DEC-11 state.
- **Drill-in close report (FR6).** When the root menu closes a drilled-in view,
`onOpenChange(false)` does not run (OQ1).
diff --git a/docs/specs/components/MoreMenu/MoreMenu.spec.md b/docs/specs/components/MoreMenu/MoreMenu.spec.md
index 4198e5ab35..0f953359f0 100644
--- a/docs/specs/components/MoreMenu/MoreMenu.spec.md
+++ b/docs/specs/components/MoreMenu/MoreMenu.spec.md
@@ -115,7 +115,7 @@ DropdownMenu's; consumer props are documented in `MoreMenu.doc.mjs`.
| --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| FR1 | Every render contains one icon-only Trigger button. The anchored presentation also renders one DropdownMenu-owned Menu surface; the bottom-sheet presentation renders its Menu surface only while the sheet is open. Anchored presentation uses Pointer action rows; BottomSheet presentation uses Touch action rows. The default trigger icon is the active registry's `moreHorizontal` artwork; `icon` replaces it with any React content. | Current source, docs, and tests |
| FR2 | The `more-menu` target is applied to the composed DropdownMenu panel as an additional class, before any caller `className`. It is not applied to the Trigger button. | Current source, docs, and tests |
-| FR3 | Button owns the Trigger button and the Icon registry owns default semantic trigger artwork resolution. DropdownMenu owns Pointer action rows; List owns Touch action rows rendered through DropdownMenu's BottomSheet path. | Current source and owner docs |
+| FR3 | Button owns the Trigger button and the Icon registry owns default semantic trigger artwork resolution. DropdownMenu owns Pointer action rows, including how the keyboard reaches a disabled row (DropdownMenu FR17); List owns Touch action rows rendered through DropdownMenu's BottomSheet path. | Current source and owner docs |
| FR4 | MoreMenu forwards open state, placement, alignment, presentation, `xstyle`, `style`, and `data-testid` to DropdownMenu without adding a parallel menu runtime, and shows no chevron. Its default position matches DropdownMenu's. | Current source and tests |
| FR5 | The trigger is named by `label` (else the translated `@astryx.moreMenu.label`, "More options"), shows that name as its tooltip, uses `variant` (default `ghost`) and `size` (default from the surrounding size context, else `md`), forwards `ref` to the trigger in the anchored presentation, and honors `isDisabled`: a disabled trigger opens from no key or press. | Current source and tests |
diff --git a/docs/specs/components/NavMenu/NavHeadingMenu.spec.md b/docs/specs/components/NavMenu/NavHeadingMenu.spec.md
index 78cbf42402..241416a156 100644
--- a/docs/specs/components/NavMenu/NavHeadingMenu.spec.md
+++ b/docs/specs/components/NavMenu/NavHeadingMenu.spec.md
@@ -43,10 +43,10 @@ system_specs: [spec:AST-005/DEC-1, spec:AST-020, spec:AST-085]
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public contract | `NavHeadingMenu` with `children`, `size` (`sm`, `md`, `lg`; default `md`), and `minWidth`; `NavHeadingMenuItem` with `label`, `description`, `icon`, `href`, `onClick`, and `isDisabled`; targets `nav-heading-menu` and `nav-heading-menu-item` with a `size` state. |
| Behavior | A `role="menu"` list of `menuitem` rows inside a heading popover, with arrow, Home, End, typeahead, Enter, Space, and Escape support. Selecting an enabled item runs it and, where the host heading supplies a close action, closes the heading menu. |
-| End-user impact | Users switch products or accounts from the heading menu by pointer or keyboard; disabled rows are skipped by keyboard and typeahead. |
+| End-user impact | Users switch products or accounts from the heading menu by pointer or keyboard; keyboard and typeahead reach disabled rows, which are announced as disabled and do nothing (FR6). |
| Builder impact | None. |
-| Compatibility/readiness | Records shipped behavior; no public change. Five implementation gaps (see Current-state impact). |
-| Review checks | Reject losing `menu`/`menuitem` roles to caller props, keyboard focus landing on a disabled item, or a caller `onKeyDown` that silently disables the keyboard model. |
+| Compatibility/readiness | Records shipped behavior; no API change; a disabled item gains `tabindex="-1"` (FR6). Six implementation gaps (see Current-state impact). |
+| Review checks | Reject losing `menu`/`menuitem` roles to caller props, keyboard movement or typeahead that skips a disabled item, a disabled item that acts or closes the menu, or a caller `onKeyDown` that silently disables the keyboard model. |
| Governing rules | `family:navigation-destinations` FR7; `architecture:interaction-modality`; `architecture:component-theming-surface`; `architecture:layer-runtime`. |
This table is a review projection; the body below is authoritative.
@@ -61,9 +61,11 @@ covers both.
## Compatibility and migration
-- Released default preserved: `yes`
-- Compatibility class: records shipped behavior; runtime, DOM, styling,
- targets, and public API remain unchanged
+- Released default preserved: `no` for disabled items: the keyboard reaches a
+ disabled item and the item carries `tabindex="-1"` (FR5, FR6), a defect fix
+ under `component:DropdownMenu` DEC-11 (owner decision, 2026-11-04)
+- Compatibility class: records shipped behavior; no public API, styling, or
+ target change; a disabled item gains `tabindex="-1"` (FR6)
- Controlled/uncontrolled behavior: not applicable
- Migration decision: none
@@ -90,6 +92,9 @@ Consumer migration instructions belong in consumer docs and release notes.
`tabIndex=-1` enabled items carry: a disabled link item becomes a page tab
stop, and a disabled action item cannot take focus at all. `spec:AST-085` FR1
keeps a disabled control's focus order as it is when enabled.
+- **Disabled items skipped (FR5, FR6).** Keyboard movement and typeahead skip
+ disabled items instead of reaching them as `component:DropdownMenu` FR17 and
+ DEC-11 state.
- **Focus is shown only by fill.** An item removes the outline and marks focus
with the hover fill; it does not use the shared focus outline that
`architecture:interaction-modality` provides.
@@ -132,8 +137,8 @@ Consumer migration instructions belong in consumer docs and release notes.
| FR2 | NavHeadingMenuItem renders one Item carrying `role="menuitem"` and the current `nav-heading-menu-item` target with the menu's size, as the `LinkProvider` link (else `<a>`) when `href` is supplied and a `div` otherwise. Caller props cannot replace its role, tab index, or disabled state. | Current source, docs, and tests |
| FR3 | An optional Icon-rendered icon delegates to Icon's `icon` target. String labels and all descriptions render through Text's `text` target on one line; non-string labels render directly as caller-owned content. | Current source and target docs |
| FR4 | The host heading owns the popup runtime. Where it supplies a close callback (TopNavHeading and the collapsed SideNavHeading), NavHeadingMenu calls it on Escape and on successful Item selection; an expanded SideNavHeading supplies none, so the menu stays open after a choice (`component:SideNavHeading` FR7). | Current source and tests |
-| FR5 | Enabled items are focusable but not tab stops. In a standalone menu, ArrowDown and ArrowUp move one enabled item and wrap; Home and End go to the first and last; typing a character moves to the matching enabled item; Enter or Space activates the focused item. | Current source and tests |
-| FR6 | Activating an enabled item runs its `onClick` and then the close callback; a disabled item carries `aria-disabled="true"`, MUST stay focusable outside the tab order as an enabled item is (`spec:AST-085` FR1), is skipped by keyboard movement and typeahead, and does not run `onClick` or close the menu. Implementation gap: a disabled item drops `tabIndex=-1` (Current-state impact). | Current source and tests |
+| FR5 | Items, disabled ones included, are focusable but not tab stops. In a standalone menu, ArrowDown and ArrowUp move one item, disabled included, and wrap; Home and End go to the first and last item; typing a character moves to the matching item, disabled included (FR6, `component:DropdownMenu` FR17); Enter or Space activates the focused item. Implementation gap: movement and typeahead skip disabled items (Current-state impact). | Current source and tests |
+| FR6 | Activating an enabled item runs its `onClick` and then the close callback; a disabled item carries `aria-disabled="true"`, MUST stay focusable outside the tab order as an enabled item is (`spec:AST-085` FR1), is reached by keyboard movement and typeahead as `component:DropdownMenu` FR17 states (owner decision, 2026-11-04, `component:DropdownMenu` DEC-11), and does not run `onClick` or close the menu. Implementation gap: a disabled item drops `tabIndex=-1`, and keyboard movement and typeahead skip it (Current-state impact). | Current source and tests |
| FR7 | A caller `onKeyDown` on the menu runs first; the keyboard model still runs unless that caller calls `preventDefault()` on an event no item handler has already cancelled; an item handler that cancels does not stop arrow navigation. | Current source and tests |
| FR8 | In the open menu, a press (finger, pen or mouse) that lands on an enabled item and slides across the items acts on the one it lifts on, once, through that item's own activation, with the highlight following the pointer; a lift outside acts on nothing, and a mouse released outside closes the menu. The menu adopts `module:DropdownMenu/useMenuPress` for this (`family:action-groups` FR1–FR5; `module:DropdownMenu/useMenuPress` DEC-7). A press on caller content that is not an item, and a Ctrl-, Cmd- or Shift-click or a middle click on a link item, stays that content's or the browser's own, and keyboard and assistive-technology behavior is unchanged. | Current source and tests |
@@ -149,14 +154,14 @@ Consumer migration instructions belong in consumer docs and release notes.
### Representative states
-| State | Required invariant | Allowed variation |
-| ----------------- | ----------------------------------------------------------------- | --------------------------------------------------------- |
-| Link Item | Item is an anchor with menuitem semantics and its current target. | Destination, text, description, and icon may vary. |
-| Action Item | Item is a div with menuitem semantics and its current target. | Selection callback may vary. |
-| Disabled Item | Item remains present and reflects disabled semantics. | It is skipped by keyboard navigation and typeahead. |
-| String-label Item | Text-rendered item label delegates to Text's current target. | Label value, destination, description, and icon may vary. |
-| Custom-label Item | Caller-rendered item label remains caller-owned. | Caller controls the non-string label content. |
-| Described Item | Item description delegates to Text's current target. | Description content may vary or be absent. |
+| State | Required invariant | Allowed variation |
+| ----------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------- |
+| Link Item | Item is an anchor with menuitem semantics and its current target. | Destination, text, description, and icon may vary. |
+| Action Item | Item is a div with menuitem semantics and its current target. | Selection callback may vary. |
+| Disabled Item | Item remains present and reflects disabled semantics. | Keyboard movement and typeahead reach it; it does nothing when activated (FR6). |
+| String-label Item | Text-rendered item label delegates to Text's current target. | Label value, destination, description, and icon may vary. |
+| Custom-label Item | Caller-rendered item label remains caller-owned. | Caller controls the non-string label content. |
+| Described Item | Item description delegates to Text's current target. | Description content may vary or be absent. |
### Transformation and precedence order
@@ -173,8 +178,8 @@ Consumer migration instructions belong in consumer docs and release notes.
named only by a caller `aria-label`; inside a heading, the heading names its
own wrapper `menu`, not this one (Current-state impact).
- **AR2 — Keyboard.** FR5 and FR6.
-- **AR3 — Disabled.** Disabled items are exposed as disabled and unreachable by
- keyboard movement.
+- **AR3 — Disabled.** Disabled items are exposed as disabled, reached by
+ keyboard movement and typeahead, and inert (FR6).
## Design relationships