Skip to content

AC use speakProperty to narrate and hide error box#3573

Merged
compulim merged 5 commits intomicrosoft:masterfrom
compulim:fix-3570
Nov 3, 2020
Merged

AC use speakProperty to narrate and hide error box#3573
compulim merged 5 commits intomicrosoft:masterfrom
compulim:fix-3570

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Nov 2, 2020

Fixes #3570. Fixes #3571.

Changelog Entry

Fixed

  • Fixes #3570. Adaptive Card speak property should be narrated in screen reader, by @compulim in PR #3573
  • Fixes #3571. Error box should be hidden for Adaptive Card renderer when running in production mode, by @compulim in PR #3573

Description

For better narration of Adaptive Card, we should narrate using the speak property, as stated in Adaptive Card schema.

We should also hide the red error box when Adaptive Card renderer failed in production mode.

Design

Specific Changes

  • Updated Adaptive Card middleware for screen reader to narrate speak property
  • Updated AdaptiveCardRenderer.js to hide the <ErrorBox> when running in production mode
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

Comment thread CHANGELOG.md Outdated
Copy link
Copy Markdown
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - one suggestion

@compulim compulim merged commit f9cad2b into microsoft:master Nov 3, 2020
@compulim compulim deleted the fix-3570 branch November 3, 2020 10:46
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.

"card abc" should hide red box in production mode AC: Not fully narrated in screen reader

2 participants