[Accessibility] [Screen Reader]: Multiple readouts of the first message of the chat.
See original GitHub issueScreenshots
Version
meta name=“botframework-directlinespeech:version” content=“4.8.0” meta name=“botframework-webchat:bundle:variant” content=“full-es5” meta name=“botframework-webchat:bundle:version” content=“4.8.0” meta name=“botframework-webchat:core:version” content=“4.8.0” meta name=“botframework-webchat:ui:version” content=“4.8.0”
Describe the bug
Content of the message is not read by a screen reader (likely due to ‘aria-hidden-true’ as shown in the screenshot above.) The entire block is content is hidden for screen readers.
Steps to reproduce
- Reported by customer as they are moving from v3 to v4 for their health bot. The issue does not happen in v3.
Expected behavior
The entire block of instruction text should be readable by screen readers Suggested Fix: Remove aria-hidden=““true”” (as shown in screenshot)
Additional context
WCAG Violation: ●https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning.html
[Bug]
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
@corinagum I have been testing this pattern for a couple of days in several browser + screen reader pairings, and wanted to follow up.
Screen reader and browser pairings
MacOS Safari + VoiceOver reads out each chat bubble three times when I navigate from point to point using the
Ctrl + Opt + RIGHT_ARROW
chord. Best I can tell, it reads thearia-label
in your AT only span, but it’s also reading the secondaria-label
inside thediv[aria-hidden="true"]
erroneously. It is then reading out thearia-label
a third time announcing the end of the text group.Looking at the markup pattern, would it be beneficial to refactor and move the assistive technology
<span>
tags as siblings to the<p>
tag that outputs text to the screen? This could provide benefits because the screen reader outline would match up with the text being read on the page, and should stop text being repeated. Thinking something like this:This is fixed in #3287.