Skip to content

fix(data-grid): announce menu actions after the menu returns focus - #1334

Closed
sadmann7 wants to merge 1 commit into
mainfrom
sadman/data-grid-sort-announcement
Closed

sadmann7 wants to merge 1 commit into
mainfrom
sadman/data-grid-sort-announcement

Conversation

@sadmann7

Copy link
Copy Markdown
Owner

VoiceOver drops "Sorted by Name, ascending" when the sort comes from a column header menu: the announcer wrote the message about 100 ms before the closing menu returned focus to its trigger, and VoiceOver read the focused button instead, which fails the VoiceOver CI job's sort test intermittently.

  • Hold a polite announcement while focus is inside a role="menu", and write it 150 ms after focus leaves the menu, so it lands after the trigger is read
  • Write it anyway after 1 s if focus never leaves the menu
  • Leave assertive announcements and announcements outside menus unchanged
  • Cover the wait, the fallback, a newer message during the wait, focus moving within the menu and teardown in the announcer tests

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tablecn Ready Ready Preview Nov 29, 2026 10:20am UTC

Request Review

@sadmann7

Copy link
Copy Markdown
Owner Author

Closing: the VoiceOver job is replaced by NVDA on Windows in #1335, where NVDA speaks the sort announcement and reads the header's aria-sort, so the announcer change isn't needed.

@sadmann7 sadmann7 closed this Nov 29, 2026

This branch was successfully deployed

1 active deployment
Preview — fbc34670 Deployed Nov 29, 2026 by vercel[bot]
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.

1 participant