Skip to content

fix(fab): dismiss menu from item escape gesture - #5363

Draft
NginxL wants to merge 1 commit into
callstack:mainfrom
NginxL:fix/fab-menu-item-accessibility-escape-5347
Draft

NginxL wants to merge 1 commit into
callstack:mainfrom
NginxL:fix/fab-menu-item-accessibility-escape-5347

Conversation

@NginxL

@NginxL NginxL commented Dec 6, 2026

Copy link
Copy Markdown

Motivation

VoiceOver's escape gesture is delivered to the focused menu item. The existing handler is on the outer container, so it does not reliably dismiss an open FAB.Menu from an item. Forward the escape action from each item while expanded and add a regression test.

Related issue

Fixes #5347

Screenshots / Videos

Not applicable: no visual layout change.

Test plan

  • Added a test that fires accessibilityEscape on item-0 and verifies onDismiss is called once.
  • Updated the existing open-menu snapshots for the new item prop on all 14 rendered item hosts.
  • git diff --check passed.
  • Local Jest, ESLint and TypeScript checks were not run because dependencies are absent and no dependency installation was performed.
  • Device verification still needed: open the menu with VoiceOver on iOS, focus an item, perform the two-finger scrub, and confirm dismissal and focus restoration.

This is a Draft PR and is not marked Ready for review.

AI disclosure

AI assistance was used for the implementation, test update and PR text. The final diff was reviewed line by line before submission; the missing local runtime and iOS verification are recorded above.

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

Found potential problems with the pull request:

  • The description is too long. Please keep it under 1000 characters.
  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn Doberjohn added this to the 6.1.0 milestone Dec 6, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FAB.Menu: VoiceOver's escape gesture doesn't close an open menu

2 participants