You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 947e7b7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(DropdownMenu, ContextMenu): sheet chevrons follow the menu's own direction (#13774)
* fix(DropdownMenu, ContextMenu): sheet chevrons follow the menu's own direction
* test(DropdownMenu): the RTL sheet case reads the computed flip, not the mirror classes
[fix] DropdownMenu, ContextMenu: in the touch sheet, a sub-menu row's chevron and the Back chevron now flip by the menu's own direction (its nearest `dir`), as the popover's already do. In a left-to-right menu inside a right-to-left page, the row chevron used to point left and the Back chevron right, against the sheet's own layout.
Copy file name to clipboardExpand all lines: docs/specs/components/DropdownMenu/DropdownMenu.spec.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,7 @@ component-local concepts; each keeps its released default.
149
149
| 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 finger's or a pen's open grows the menu, a tap's open at its lift included, and the grow follows the popover's path. A mouse and the keyboard keep the layer's own entrance and exit. Under Reduce Motion, where the primary pointer is coarse, the menu fades in at its size and fades out where it stands (`design:reduced-motion` DR2). Under a coarse primary pointer, taps stay held from the open until the menu is visible. Implementation gap: the menu has no pan-outside dismissal of its own. | `spec:AST-094` FR31, FR32; `family:overlay-dismissal` AV6 |
150
150
| 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` |
151
151
| 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 |
152
+
| 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 | |
152
153
153
154
### Allowed variation
154
155
@@ -375,6 +376,7 @@ than adding a DropdownMenu-owned heading target.
375
376
| 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` |
376
377
| 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` |
377
378
| 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` |
379
+
| 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` |
378
380
| PR1 | Evidence gap: no test asserts the listener and observer bounds | — | — | `audit:DropdownMenu/behavior` |
0 commit comments