Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3625 Update 'no screen reader for custom activity middleware' warning #3689

Merged
merged 9 commits into from
Feb 5, 2021

Conversation

corinagum
Copy link
Contributor

@corinagum corinagum commented Jan 29, 2021

Fixes #3625

Changelog Entry

  • Fixes #3625. Update 'no screen reader for custom activity middleware' warning and add screen reader renderer documentation to ACCESSIBILITY.md, by @corinagum in PR #3689

Description

Previously, visual activity or attachment components without an accompanying screen reader renderer threw a console error in browser. This changes that error to a warning, and adds documentation on how to suppress these warnings (not recommended).

Specific Changes

  • Change applyMiddleware.js screen reader console error to warning.
  • Add documentation to ACCESSIBILITY.md. See ACCESSIBILITY.md for more details.
  • Add more detail to various comments
  • Various linting fixes
  • 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)

docs/ACCESSIBILITY.md Show resolved Hide resolved
packages/component/src/ErrorBox.js Show resolved Hide resolved
__tests__/html/__jest__/setupRunHTMLTest.js Outdated Show resolved Hide resolved
@corinagum
Copy link
Contributor Author

corinagum commented Feb 2, 2021

@amal-khalaf technically, there should be no visual behavioral change, but the test snapshot at packages/bundle/src/adaptiveCards/AttachmentForScreenReader/AdaptiveCardAttachment.js was incorrect. I verified that the new snapshot is correct behavior with compulim. Very weird that this test was passing before.

Copy link
Contributor

@compulim compulim left a comment

Choose a reason for hiding this comment

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

Seems something wrong with the logic.

That code path only runs in Safari (quirks) and not in tests. So it won't catch in our CI pipeline.

docs/ACCESSIBILITY.md Outdated Show resolved Hide resolved
packages/api/src/hooks/Composer.js Show resolved Hide resolved
packages/api/src/hooks/utils/ErrorBoundary.js Show resolved Hide resolved
packages/component/src/BasicTranscript.js Show resolved Hide resolved
@compulim compulim merged commit cc7a683 into microsoft:master Feb 5, 2021
@compulim compulim mentioned this pull request Mar 2, 2021
52 tasks
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.

4.11.0 minimal bundle => No renderer for attachment for screen reader of type XY
3 participants