Accessibility Issue - Screen reader reads adaptive card content as "attachment"
See original GitHub issueWe are using webchat-es5.js for our Virtual assistant and our customers are using NVDA screen reader to access it. The screen reads the normal card and user messages properly. But for Adaptive card, it reads as “Bullet A Card” , “one attachment on date time” instead of reading the content. When checked the DOM, the adaptive card has aria-roledescription=“attachment” which triggers screen reader to read it as attachment.
Screenshots
Version
webchat es5 version 4.11.0 https://cdn.botframework.com/botframework-webchat/4.11.0/webchat-es5.js Integrating the CDN version js directly on the page using script tag (No Iframe). Desktop Chrome Browser.
<meta name="botframework-directlinespeech:version" content="4.11.0">
<meta name="botframework-webchat:bundle:variant" content="full-es5">
<meta name="botframework-webchat:bundle:version" content="4.11.0">
<meta name="botframework-webchat:core:version" content="4.11.0">
<meta name="botframework-webchat:ui:version" content="4.11.0">
Describe the bug
We are using webchat-es5.js for our Virtual assistant and our customers are using NVDA screen reader to access it. The Virtual Assistant is web app bot developed using VA template that uses QnA/LUIS cognitive services. The screen reader reads normal card text and user input text. But if Bot response is adaptive card, then it reads as “Bullet A Card”, “one attachment received on date time” instead of reading the card content. The adaptive card has a message and few buttons.
Steps to reproduce
- Deploy Web App Bot with adaptive cards.
- Start NVDA screen reader or JAWS 2021 screen reader.
- Open the web app bot on browser.
- Interact with the bot till the adaptive card response arrives.
- Observe how the screen reader reads the bot response.
Expected behavior
The screen reader should read the adaptive card content along with control texts (Button labels). The DOM should render adaptive card response in div with attribute aria-roledescription=“message” instead of aria-roledescription=“attachment”
Please advice if any other fix to make the screen reader to read the adaptive card content. [Bug]
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (9 by maintainers)
Top GitHub Comments
@corinagum - I did not modify @venkatx5’s JSON:
@corinagum - I just did it in Emulator so it’s easier to repro, but this is the same behavior that’s in Web Chat:
https://user-images.githubusercontent.com/41968495/105538272-03074000-5ca8-11eb-82a2-5ebfd2570394.mp4