From 8fd45f6ee8727c94df174ec2372b85a6064373d3 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Wed, 25 Nov 2026 06:13:42 -0800 Subject: [PATCH 1/2] docs(DropdownMenu): FR25 records how the touch sheet names and keeps its open sub-menus --- docs/specs/components/DropdownMenu/DropdownMenu.spec.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/specs/components/DropdownMenu/DropdownMenu.spec.md b/docs/specs/components/DropdownMenu/DropdownMenu.spec.md index c01475f4d1327..775f38eb43069 100644 --- a/docs/specs/components/DropdownMenu/DropdownMenu.spec.md +++ b/docs/specs/components/DropdownMenu/DropdownMenu.spec.md @@ -150,6 +150,7 @@ component-local concepts; each keeps its released default. | FR22 | Under a finger, in the touch modes, where the primary pointer is coarse (a phone or a tablet), a tap or a drag that lands while the pointer menu enters MUST reach nothing: it closes nothing, scrolls nothing, moves no focus and clicks nothing (`spec:AST-094` FR35). The finger that opened the menu still picks the row it lifts on (FR8). Keys and assistive technology stay live. A mouse, a pinned `'popover'` and a finger where the primary pointer is fine (a touchscreen laptop) hold nothing, as for `component:Drawer`. Implementation gap: after a finger, a still mouse's first press lands on the entering menu's shield unless the mouse rests where the page last heard it when the shield came up (`spec:AST-094` FR35). | `spec:AST-094` FR35; `architecture:layer-runtime` | | FR23 | Tab or Shift+Tab on a row at any level of a menu without `header` or `footer`, its own rows or an open sub-menu flyout's at any depth, closes every open level and the menu, calls `onOpenChange(false)` once, and leaves focus to move on from the trigger in page order (WAI-ARIA Menu Button). A level with a header or footer keeps FR15's and FR20's Tab cycle within it. | WAI-ARIA Menu Button pattern; current tests | | FR24 | A sub-menu row's chevron points the way its sub-menu opens, and a Back control's chevron points the way it returns, in the menu's own direction (its nearest `dir`), not the page's: in the pointer menu, its flyouts and drill-in views, and the touch sheet, in DropdownMenu and in ContextMenu (`docs/design/bidirectionality.md` DR6). | Bidirectionality guide DR6; current tests | | +| FR25 | In the touch sheet, an open sub-menu is named by its row's `id`, else by its position among its level's rows (a section's rows counted in place), and renders from the current `items` on every render. When its row leaves `items`, or has no rows left, the sheet shows the deepest open level whose row remains, and a row that returns later does not reopen its sub-menu. A controlled close in the same render keeps the close: the next open starts at the root. | ### Allowed variation @@ -379,6 +380,7 @@ than adding a DropdownMenu-owned heading target. | FR22 | `DropdownMenu.test.tsx` "DropdownMenu entrance under a finger" cases; `useMenuPress.test.tsx` "an input hold over the menu" cases; `DropdownMenuEntranceHold.interaction.browser.spec.ts` | A tap outside and a finger's slide while the menu enters; a mouse click | A tap during the entrance that closes the menu, clicks the page or moves focus, a slide that picks nothing, or a held mouse fails. | `audit:DropdownMenu/behavior` | | FR23 | `DropdownMenu.test.tsx` Tab cases; `DropdownMenuSubMenu.test.tsx` "Tab from a flyout leaves the whole menu" suite | top level, one and two levels down, Shift+Tab | A Tab that leaves any level open, a second `onOpenChange(false)`, or a prevented Tab fails. | `audit:DropdownMenu/accessibility` | | FR24 | `DropdownMenuSubMenu.test.tsx` direction cases (flyout and drill-in); `DropdownMenu.test.tsx` and `ContextMenu.test.tsx` "points the sheet … chevron by the menu direction, not the page" | an LTR menu in an RTL page and an RTL menu in an LTR page, flyout, drill-in and touch sheet | A chevron that flips by the page's direction instead of the menu's fails. | `audit:DropdownMenu/accessibility` | +| FR25 | `DropdownMenu.test.tsx` sheet sub-menu cases: "shows an open sub-menu of the sheet with the current items after a re-render", "closes an open sub-menu of the sheet back to its parent when its row leaves the items", "keeps an open sub-menu of the sheet closed when its removed row comes back", "reopens the sheet at the root after a controlled close that also removed the open nested level" | | PR1 | Evidence gap: no test asserts the listener and observer bounds | — | — | `audit:DropdownMenu/behavior` | | Theming anatomy map | `scripts/check-knowledge.mjs` | Canonical anatomy and targets | Missing, extra, prefixed, stale, or alias-backed mappings fail repository validation. | `audit:DropdownMenu/theming` | From 45a1da760667d574ab995b0907a85bd10effc7ce Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Wed, 25 Nov 2026 07:43:46 -0800 Subject: [PATCH 2/2] docs(DropdownMenu): FR25 says an empty items closes the level, gains its basis, and its verification row names every case --- .../DropdownMenu/DropdownMenu.spec.md | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/specs/components/DropdownMenu/DropdownMenu.spec.md b/docs/specs/components/DropdownMenu/DropdownMenu.spec.md index 775f38eb43069..e67be234c3e9e 100644 --- a/docs/specs/components/DropdownMenu/DropdownMenu.spec.md +++ b/docs/specs/components/DropdownMenu/DropdownMenu.spec.md @@ -150,7 +150,7 @@ component-local concepts; each keeps its released default. | FR22 | Under a finger, in the touch modes, where the primary pointer is coarse (a phone or a tablet), a tap or a drag that lands while the pointer menu enters MUST reach nothing: it closes nothing, scrolls nothing, moves no focus and clicks nothing (`spec:AST-094` FR35). The finger that opened the menu still picks the row it lifts on (FR8). Keys and assistive technology stay live. A mouse, a pinned `'popover'` and a finger where the primary pointer is fine (a touchscreen laptop) hold nothing, as for `component:Drawer`. Implementation gap: after a finger, a still mouse's first press lands on the entering menu's shield unless the mouse rests where the page last heard it when the shield came up (`spec:AST-094` FR35). | `spec:AST-094` FR35; `architecture:layer-runtime` | | FR23 | Tab or Shift+Tab on a row at any level of a menu without `header` or `footer`, its own rows or an open sub-menu flyout's at any depth, closes every open level and the menu, calls `onOpenChange(false)` once, and leaves focus to move on from the trigger in page order (WAI-ARIA Menu Button). A level with a header or footer keeps FR15's and FR20's Tab cycle within it. | WAI-ARIA Menu Button pattern; current tests | | FR24 | A sub-menu row's chevron points the way its sub-menu opens, and a Back control's chevron points the way it returns, in the menu's own direction (its nearest `dir`), not the page's: in the pointer menu, its flyouts and drill-in views, and the touch sheet, in DropdownMenu and in ContextMenu (`docs/design/bidirectionality.md` DR6). | Bidirectionality guide DR6; current tests | | -| FR25 | In the touch sheet, an open sub-menu is named by its row's `id`, else by its position among its level's rows (a section's rows counted in place), and renders from the current `items` on every render. When its row leaves `items`, or has no rows left, the sheet shows the deepest open level whose row remains, and a row that returns later does not reopen its sub-menu. A controlled close in the same render keeps the close: the next open starts at the root. | +| FR25 | In the touch sheet, an open sub-menu is named by its row's `id`, else by its position among its level's rows (a section's rows counted in place), and renders from the current `items` on every render. When its row leaves `items`, or its `items` is empty, the sheet shows the deepest open level whose row remains, and a row that returns later does not reopen its sub-menu. A controlled close in the same render keeps the close: the next open starts at the root. | Current behavior; current tests | ### Allowed variation @@ -356,33 +356,33 @@ than adding a DropdownMenu-owned heading target. ## Verification map -| Contract | Verification | Representative states | Mutation or failure expectation | Audit section | -| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- | -| FR1, FR4 | `DropdownMenu.test.tsx` rendering cases ("renders menu with role=\"menu\"", "renders data-driven actions in a bottom sheet when requested", "uses the BottomSheet for adaptive presentation on compact touch", "uses the shared menu BottomSheet frame", "keeps adaptive presentation anchored without compact touch") and section, divider, and compound cases | Root pointer, root touch, adaptive | A missing surface, sheet frame, or menu role fails. Evidence gap: no test asserts the `dropdown-menu` target on the Touch menu surface or `list-item` on touch rows. | `audit:DropdownMenu/anatomy` | -| FR2 | `DropdownMenu.test.tsx` theming-slot cases ("exposes a themeable slot on the section heading", "exposes a themeable slot on the menu divider"); `DropdownMenuSubMenu.test.tsx` "exposes a themeable slot on the submenu indicator icon"; `themingTargets.test.ts` | Heading, divider, submenu indicator | A missing heading, divider, or indicator target fails; a rendered class absent from the documented targets fails. Evidence gap: no test asserts `dropdown-menu`, `dropdown-menu-item`, or `dropdown-menu-radio` placement. | `audit:DropdownMenu/theming` | -| FR3 | `DropdownMenu.test.tsx` button customization, icon-only, and hasChevron cases | Button variants and sizes; icon-only; no chevron | A Button prop that stops reaching the trigger fails. Evidence gap: the delegated Trigger Button gaps are asserted by `component:Button`'s own records, and no test here asserts the BottomSheet, List, Indicator, or Icon delegation beyond rendering. | `audit:DropdownMenu/theming` | -| FR5 | `DropdownMenu.test.tsx` press-model cases ("a finger that lands on one row and lifts on another acts on the second, once", "a mouse released outside closes the menu; a finger released outside leaves it open", "marks the menu as carrying the press model and owns touch scrolling"); `MenuPress.a11y.chromium.spec.ts`; the module record's own map | Finger and mouse release; scrolling menu | A row that acts on press-down, a mouse release outside that keeps the menu, or a missing press marker fails. | `audit:DropdownMenu/behavior` | -| FR5 (sheet rows) | `MenuBottomSheetActionList.test.tsx` "a press on the part of a row outside its action" cases; `DropdownMenuSheetRowPress.interaction.browser.spec.ts` | Touch and mouse press on a sheet row's icon, end content and padding; disabled row; section heading; end-content control, checkbox and switch | A press beside a row's label that runs nothing, a disabled row that runs, an end-content control that loses its own press, or an end-content checkbox or switch that does not toggle fails. | `audit:DropdownMenu/behavior` | -| FR6 | `DropdownMenu.test.tsx` focus-return cases ("restores focus to the trigger after keyboard dismissal", "returns focus to the trigger after pointer dismissal without a focus ring", "leaves focus on the control a press outside landed on") and the "focus return after a pointer pick" and "a trigger the caller renders" cases | Keyboard and pointer close; Button and custom trigger | A lost focus return, a ring after a pointer close, no ring after a keyboard close, or focus pulled off a control pressed outside fails. | `audit:DropdownMenu/accessibility` | -| FR7 | `DropdownMenu.test.tsx` menuMaxHeight cases | A cap above 300px; viewport bound | A menu clipped to 300px under a raised cap, or one that escapes the viewport, fails. Evidence gap: no test asserts that the touch sheet ignores the cap. | `audit:DropdownMenu/layout` | -| FR8 | `DropdownMenu.test.tsx` press-model trigger cases ("a mouse press on the trigger opens the menu and a drag-release acts on the row under it", "the opening release before the settle time acts on nothing and the menu stays", "pressing the trigger of an open menu closes it and does not reopen it in the same gesture", "under a coarse pointer a finger opens the menu as it presses the trigger (no scroll view), and a slide picks", "a tap on the trigger opens the menu on the press, and its click does not close it") | Mouse press-open; held finger; tap | A mouse that opens only on click, an opening release that acts early, or a re-open in the closing gesture fails. A finger press that waits for a hold, or a tap whose click toggles the menu its press opened, fails. | `audit:DropdownMenu/behavior` | -| FR8 | `DropdownMenuOpeningRelease.interaction.browser.spec.ts` (Chromium, WebKit): an opening release off the trigger, under a trigger that moved away, or on the trigger after a show that waited leaves the menu open; a settled release outside closes it | Mouse release off the trigger | An opening release before the settle time that the browser's light dismiss closes fails | `audit:DropdownMenu/behavior` | -| FR9, AR1 | `DropdownMenu.test.tsx` custom trigger cases; `DropdownMenuSubMenu.test.tsx` "a menu hung off a custom trigger" cases | Custom trigger open, keyboard, mouse, disabled; both props given; Back row names | A custom trigger that does not open, toggle, or name the menu, a disabled one that opens, a missing warning, or a wrong Back row name fails. | `audit:DropdownMenu/accessibility` | -| FR10, AR2, ORD1 | `DropdownMenu.test.tsx` "DropdownMenuItem href" and "link rows — the browser's own clicks" cases | Plain, modified, middle, and right click; Enter; bottom sheet; disabled; blocked | A row that is not an anchor, a modified click that runs `onClick`, a middle click that does not close, a disabled row with an address, or a live blocked destination fails. Evidence gap: no test asserts the order of `onClick`, close, and navigation. | `audit:DropdownMenu/behavior` | -| FR11, AR3 | `DropdownMenuSubMenu.test.tsx` "drill-in on a phone" cases; `DropdownMenuDrillIn.a11y.chromium.spec.ts` | Phone and laptop; forced presentations; theme breakpoint; reset on close | A flyout on a phone, a drill-in on a laptop by default, a wrong name, a Back that loses focus, or a drilled view that survives a close fails. | `audit:DropdownMenu/accessibility` | -| FR12, AR4 | `DropdownMenu.test.tsx` keyboard cases ("ArrowDown on the last row wraps to the first, ArrowUp on the first to the last", "ArrowUp on the trigger opens with the last row highlighted", "PageDown moves to the last row and PageUp back to the first", "the opening key's auto-repeat does not act on the highlighted row"), open-focus cases, typeahead cases, and "has aria-haspopup and aria-expanded attributes"; pointer-open cases ("pointer open focuses the menu container, not the first item (items mode)", "a row the pointer lit before the open frame keeps focus after a pointer open", "first ArrowDown after a pointer open moves focus to the first enabled item", "ArrowDown after a pointer open reaches a disabled leading item") | Wrap, Page keys, open keys, auto-repeat, typeahead; pointer open | A missing wrap, a Page key that does not move, an ArrowUp open on the first row, an auto-repeat that acts, or a missing typeahead match fails. Evidence gap: no test asserts PageDown past the visible rows, typeahead ignoring chords or composition, or `aria-controls` on the Button trigger. | `audit:DropdownMenu/accessibility` | -| 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, 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 | `DropdownMenuTouchGrow.test.tsx` (which opens grow); `DropdownMenuTouchGrow.interaction.browser.spec.ts` (Chromium, WebKit): the first tap after load, a tap in scrolling content and a held finger grow the menu out of its trigger, on the popover's path and timing. Evidence gap: pan dismissal, matching the FR21 gap | — | — | `audit:DropdownMenu/behavior` | -| FR22 | `DropdownMenu.test.tsx` "DropdownMenu entrance under a finger" cases; `useMenuPress.test.tsx` "an input hold over the menu" cases; `DropdownMenuEntranceHold.interaction.browser.spec.ts` | A tap outside and a finger's slide while the menu enters; a mouse click | A tap during the entrance that closes the menu, clicks the page or moves focus, a slide that picks nothing, or a held mouse fails. | `audit:DropdownMenu/behavior` | -| FR23 | `DropdownMenu.test.tsx` Tab cases; `DropdownMenuSubMenu.test.tsx` "Tab from a flyout leaves the whole menu" suite | top level, one and two levels down, Shift+Tab | A Tab that leaves any level open, a second `onOpenChange(false)`, or a prevented Tab fails. | `audit:DropdownMenu/accessibility` | -| FR24 | `DropdownMenuSubMenu.test.tsx` direction cases (flyout and drill-in); `DropdownMenu.test.tsx` and `ContextMenu.test.tsx` "points the sheet … chevron by the menu direction, not the page" | an LTR menu in an RTL page and an RTL menu in an LTR page, flyout, drill-in and touch sheet | A chevron that flips by the page's direction instead of the menu's fails. | `audit:DropdownMenu/accessibility` | -| FR25 | `DropdownMenu.test.tsx` sheet sub-menu cases: "shows an open sub-menu of the sheet with the current items after a re-render", "closes an open sub-menu of the sheet back to its parent when its row leaves the items", "keeps an open sub-menu of the sheet closed when its removed row comes back", "reopens the sheet at the root after a controlled close that also removed the open nested level" | -| PR1 | Evidence gap: no test asserts the listener and observer bounds | — | — | `audit:DropdownMenu/behavior` | -| Theming anatomy map | `scripts/check-knowledge.mjs` | Canonical anatomy and targets | Missing, extra, prefixed, stale, or alias-backed mappings fail repository validation. | `audit:DropdownMenu/theming` | +| Contract | Verification | Representative states | Mutation or failure expectation | Audit section | +| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------- | +| FR1, FR4 | `DropdownMenu.test.tsx` rendering cases ("renders menu with role=\"menu\"", "renders data-driven actions in a bottom sheet when requested", "uses the BottomSheet for adaptive presentation on compact touch", "uses the shared menu BottomSheet frame", "keeps adaptive presentation anchored without compact touch") and section, divider, and compound cases | Root pointer, root touch, adaptive | A missing surface, sheet frame, or menu role fails. Evidence gap: no test asserts the `dropdown-menu` target on the Touch menu surface or `list-item` on touch rows. | `audit:DropdownMenu/anatomy` | +| FR2 | `DropdownMenu.test.tsx` theming-slot cases ("exposes a themeable slot on the section heading", "exposes a themeable slot on the menu divider"); `DropdownMenuSubMenu.test.tsx` "exposes a themeable slot on the submenu indicator icon"; `themingTargets.test.ts` | Heading, divider, submenu indicator | A missing heading, divider, or indicator target fails; a rendered class absent from the documented targets fails. Evidence gap: no test asserts `dropdown-menu`, `dropdown-menu-item`, or `dropdown-menu-radio` placement. | `audit:DropdownMenu/theming` | +| FR3 | `DropdownMenu.test.tsx` button customization, icon-only, and hasChevron cases | Button variants and sizes; icon-only; no chevron | A Button prop that stops reaching the trigger fails. Evidence gap: the delegated Trigger Button gaps are asserted by `component:Button`'s own records, and no test here asserts the BottomSheet, List, Indicator, or Icon delegation beyond rendering. | `audit:DropdownMenu/theming` | +| FR5 | `DropdownMenu.test.tsx` press-model cases ("a finger that lands on one row and lifts on another acts on the second, once", "a mouse released outside closes the menu; a finger released outside leaves it open", "marks the menu as carrying the press model and owns touch scrolling"); `MenuPress.a11y.chromium.spec.ts`; the module record's own map | Finger and mouse release; scrolling menu | A row that acts on press-down, a mouse release outside that keeps the menu, or a missing press marker fails. | `audit:DropdownMenu/behavior` | +| FR5 (sheet rows) | `MenuBottomSheetActionList.test.tsx` "a press on the part of a row outside its action" cases; `DropdownMenuSheetRowPress.interaction.browser.spec.ts` | Touch and mouse press on a sheet row's icon, end content and padding; disabled row; section heading; end-content control, checkbox and switch | A press beside a row's label that runs nothing, a disabled row that runs, an end-content control that loses its own press, or an end-content checkbox or switch that does not toggle fails. | `audit:DropdownMenu/behavior` | +| FR6 | `DropdownMenu.test.tsx` focus-return cases ("restores focus to the trigger after keyboard dismissal", "returns focus to the trigger after pointer dismissal without a focus ring", "leaves focus on the control a press outside landed on") and the "focus return after a pointer pick" and "a trigger the caller renders" cases | Keyboard and pointer close; Button and custom trigger | A lost focus return, a ring after a pointer close, no ring after a keyboard close, or focus pulled off a control pressed outside fails. | `audit:DropdownMenu/accessibility` | +| FR7 | `DropdownMenu.test.tsx` menuMaxHeight cases | A cap above 300px; viewport bound | A menu clipped to 300px under a raised cap, or one that escapes the viewport, fails. Evidence gap: no test asserts that the touch sheet ignores the cap. | `audit:DropdownMenu/layout` | +| FR8 | `DropdownMenu.test.tsx` press-model trigger cases ("a mouse press on the trigger opens the menu and a drag-release acts on the row under it", "the opening release before the settle time acts on nothing and the menu stays", "pressing the trigger of an open menu closes it and does not reopen it in the same gesture", "under a coarse pointer a finger opens the menu as it presses the trigger (no scroll view), and a slide picks", "a tap on the trigger opens the menu on the press, and its click does not close it") | Mouse press-open; held finger; tap | A mouse that opens only on click, an opening release that acts early, or a re-open in the closing gesture fails. A finger press that waits for a hold, or a tap whose click toggles the menu its press opened, fails. | `audit:DropdownMenu/behavior` | +| FR8 | `DropdownMenuOpeningRelease.interaction.browser.spec.ts` (Chromium, WebKit): an opening release off the trigger, under a trigger that moved away, or on the trigger after a show that waited leaves the menu open; a settled release outside closes it | Mouse release off the trigger | An opening release before the settle time that the browser's light dismiss closes fails | `audit:DropdownMenu/behavior` | +| FR9, AR1 | `DropdownMenu.test.tsx` custom trigger cases; `DropdownMenuSubMenu.test.tsx` "a menu hung off a custom trigger" cases | Custom trigger open, keyboard, mouse, disabled; both props given; Back row names | A custom trigger that does not open, toggle, or name the menu, a disabled one that opens, a missing warning, or a wrong Back row name fails. | `audit:DropdownMenu/accessibility` | +| FR10, AR2, ORD1 | `DropdownMenu.test.tsx` "DropdownMenuItem href" and "link rows — the browser's own clicks" cases | Plain, modified, middle, and right click; Enter; bottom sheet; disabled; blocked | A row that is not an anchor, a modified click that runs `onClick`, a middle click that does not close, a disabled row with an address, or a live blocked destination fails. Evidence gap: no test asserts the order of `onClick`, close, and navigation. | `audit:DropdownMenu/behavior` | +| FR11, AR3 | `DropdownMenuSubMenu.test.tsx` "drill-in on a phone" cases; `DropdownMenuDrillIn.a11y.chromium.spec.ts` | Phone and laptop; forced presentations; theme breakpoint; reset on close | A flyout on a phone, a drill-in on a laptop by default, a wrong name, a Back that loses focus, or a drilled view that survives a close fails. | `audit:DropdownMenu/accessibility` | +| FR12, AR4 | `DropdownMenu.test.tsx` keyboard cases ("ArrowDown on the last row wraps to the first, ArrowUp on the first to the last", "ArrowUp on the trigger opens with the last row highlighted", "PageDown moves to the last row and PageUp back to the first", "the opening key's auto-repeat does not act on the highlighted row"), open-focus cases, typeahead cases, and "has aria-haspopup and aria-expanded attributes"; pointer-open cases ("pointer open focuses the menu container, not the first item (items mode)", "a row the pointer lit before the open frame keeps focus after a pointer open", "first ArrowDown after a pointer open moves focus to the first enabled item", "ArrowDown after a pointer open reaches a disabled leading item") | Wrap, Page keys, open keys, auto-repeat, typeahead; pointer open | A missing wrap, a Page key that does not move, an ArrowUp open on the first row, an auto-repeat that acts, or a missing typeahead match fails. Evidence gap: no test asserts PageDown past the visible rows, typeahead ignoring chords or composition, or `aria-controls` on the Button trigger. | `audit:DropdownMenu/accessibility` | +| 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, 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 | `DropdownMenuTouchGrow.test.tsx` (which opens grow); `DropdownMenuTouchGrow.interaction.browser.spec.ts` (Chromium, WebKit): the first tap after load, a tap in scrolling content and a held finger grow the menu out of its trigger, on the popover's path and timing. Evidence gap: pan dismissal, matching the FR21 gap | — | — | `audit:DropdownMenu/behavior` | +| FR22 | `DropdownMenu.test.tsx` "DropdownMenu entrance under a finger" cases; `useMenuPress.test.tsx` "an input hold over the menu" cases; `DropdownMenuEntranceHold.interaction.browser.spec.ts` | A tap outside and a finger's slide while the menu enters; a mouse click | A tap during the entrance that closes the menu, clicks the page or moves focus, a slide that picks nothing, or a held mouse fails. | `audit:DropdownMenu/behavior` | +| FR23 | `DropdownMenu.test.tsx` Tab cases; `DropdownMenuSubMenu.test.tsx` "Tab from a flyout leaves the whole menu" suite | top level, one and two levels down, Shift+Tab | A Tab that leaves any level open, a second `onOpenChange(false)`, or a prevented Tab fails. | `audit:DropdownMenu/accessibility` | +| FR24 | `DropdownMenuSubMenu.test.tsx` direction cases (flyout and drill-in); `DropdownMenu.test.tsx` and `ContextMenu.test.tsx` "points the sheet … chevron by the menu direction, not the page" | an LTR menu in an RTL page and an RTL menu in an LTR page, flyout, drill-in and touch sheet | A chevron that flips by the page's direction instead of the menu's fails. | `audit:DropdownMenu/accessibility` | +| FR25 | `DropdownMenu.test.tsx` sheet sub-menu cases: "shows an open sub-menu of the sheet with the current items after a re-render", "keeps an open sub-menu of the sheet by its id when a row is inserted above it", "closes an open sub-menu of the sheet back to its parent when its row leaves the items", "closes an open sub-menu of the sheet back to its parent when its last row leaves", "keeps an open sub-menu of the sheet closed when its removed row comes back", "reopens the sheet at the root after a controlled close that also removed the open nested level". Evidence gap: no case re-renders the items around a sub-menu that is named by its position inside a section | A sheet sub-menu open while `items` re-renders: a row's label changes, a row is inserted above it, its row leaves, its last row leaves, the row returns, and a controlled close removes it | An open sub-menu that shows stale items, follows another row after an insert, stays open on an empty level, reopens when its row returns, or reopens inside a sub-menu after a controlled close, fails | `audit:DropdownMenu/behavior` | +| PR1 | Evidence gap: no test asserts the listener and observer bounds | — | — | `audit:DropdownMenu/behavior` | +| Theming anatomy map | `scripts/check-knowledge.mjs` | Canonical anatomy and targets | Missing, extra, prefixed, stale, or alias-backed mappings fail repository validation. | `audit:DropdownMenu/theming` | ## Current-state impact