Repository navigation
feat(data-grid): announce pastes to screen readers - #1329
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…e-announcements # Conflicts: # e2e/a11y.spec.ts
…e-announcements # Conflicts: # e2e/a11y.spec.ts # src/hooks/test/use-data-grid.test.tsx # src/lib/data-grid-announcer.ts
This was referenced Nov 28, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A paste changed the grid without a word to screen reader users beyond the toast. The toast couldn't be translated and didn't say what was skipped or added. This is the paste half of #1326; undo and redo are in #1327.
cellsPastedkey inmessages, for example "4 cells pasted", "1 cell pasted, 1 skipped" or "3 cells pasted, 2 rows added". An empty string silences it.paste(cellCount,addedRowCount,skippedCount) to a successful paste'sClipboardNotice. The grid announces from it, and a customonClipboardNoticecan check it to skip its own spoken message, since the grid now announces pastes even when that handler is set.toastSilently, the same helper feat(data-grid): announce undo and redo to screen readers #1327 adds for undo and redo. Error toasts, such as a paste that skipped every cell, are still read.The virtual screen reader also logs the hidden toast text, because it falls back to
textContentfor live region additions, so the a11y test reads Chromium's tree to rule that copy out. Only the toast's title is hidden: an app that turns on sonner'scloseButtonstill has "Close toast" inside the live region.