Repository navigation
Read Adaptive Card text in the live region as the card shows it - #5929
Merged
Merged
Conversation
Eugene (OEvgeny)
marked this pull request as ready for review
October 20, 2026 17:59
Eugene (OEvgeny)
requested review from
William Wong (compulim),
Chris Whitten (cwhitten) and
TJ Durnford (tdurnford)
as code owners
October 20, 2026 17:59
added 11 commits
October 20, 2026 13:22
Text blocks, rich text blocks, and facts are rendered with Adaptive Cards and the same Markdown engine as the visible card, so Markdown syntax and {{DATE()}}/{{TIME()}} are no longer read as written.
Image alt text in Markdown is read, and HTML blocks without whitespace between them are no longer read as one word.
Eugene (OEvgeny)
force-pushed
the
OEvgeny/fix-liveregion-card-text-format
branch
from
October 20, 2026 20:24
9d2b684 to
f922810
Compare
William Wong (compulim)
previously approved these changes
Oct 20, 2026
Eugene (OEvgeny)
dismissed
William Wong (compulim)’s stale review
via
October 20, 2026 23:16
4020042
William Wong (compulim)
approved these changes
Oct 20, 2026
Eugene (OEvgeny)
enabled auto-merge (squash)
October 20, 2026 23:23
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.
Changelog Entry
Fixed
{{DATE()}}syntax, in PR #5929, by @OEvgenyDescription
Since #5922 the live region reads the raw card
text, so screen readers say asterisks, link URLs, and{{DATE(...)}}. Text blocks, rich text blocks, and facts are now rendered with the visible card's Markdown engine and read withhtmlTextAlternatives(), as message text is.Design
{{DATE()}}/{{TIME()}}, then Markdown) instead of stripping Markdown, so the live region reads what the card shows.Specific Changes
activityAltText.ts:htmlTextAlternatives()takes any node, exported throughinternal.jssetMarkdownEngine.ts: moved out ofrenderAdaptiveCard.tsfor reuseAdaptiveCardAttachment.js: reads the rendered text (raw text if rendering throws)adaptiveCard.markdown.html: snapshot 1, reads the card text without Markdown syntaxadaptiveCard.dateTime.html: snapshot 1, reads the date and time as the card shows themadaptiveCard.imageAndBlocks.html: snapshot 1, reads image alt text and separates HTML blocksCHANGELOG.md: entryI have added tests and executed them locally
I have added
.changelog/<PR#>-<slug>.mdI have updated documentation
Review Checklist
z-index)package.jsonandpackage-lock.jsonreviewed