Repository navigation
[menu] Toggle submenus on repeated trigger activation - #5824
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,249.34 ms 🔺+334.26 ms(+36.5%) | Renders: 76 (+0) | Paint: 2,098.42 ms 🔺+556.00 ms(+36.0%)
…and 8 more (+2 within noise) — details Metric alarms
…and 12 more metric alarms — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
|
@claude review |
This comment was marked as resolved.
This comment was marked as resolved.
|
Addressed the review feedback in 1464e4b:
Validation: submenu trigger suites passed in Chromium (36 passed, 1 skipped) and jsdom (30 passed, 7 skipped). TypeScript, ESLint, Stylelint, Prettier, and diff checks passed. Actual Android TalkBack was not tested. 🤖 Response generated with Codex |
TalkBack users can open a submenu but cannot close it by activating its trigger again with the default
openOnHoverbehavior. TalkBack virtual-cursor navigation does not fire DOM focus events, so moving outside the submenu does not dismiss it; moving the cursor forward again re-enters it. Keep trigger toggling enabled so users can close the submenu and continue to the next item in the parent menu.Normal keyboard navigation already closes the submenu when returning to its trigger, so activating that trigger still opens it again. Mouse presses retain the existing hover behavior. The toggle applies to supported trigger activations generally, including touch; TalkBack is the motivating case because its virtual cursor leaves DOM focus unchanged.
Extends the TalkBack activation test to cover open → close → reopen with the full virtual pointerdown/mousedown/click sequence, without manually focusing the trigger, and verifies the parent menu stays open and clarifies the existing test for ignoring the trailing click of a TalkBack press.
Validation: submenu tests passed in jsdom (30 passed) and Chromium (33 passed); TypeScript, focused ESLint, and Prettier checks passed.