microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.59k stars 1.54k forks source link

Presence of extraneous <article> tags can cause confusion for screen reader users #4984

Closed cryptasian closed 6 months ago

cryptasian commented 9 months ago

Is it an issue related to Adaptive Cards?

No.

What is the PWD impact?

No response

What browsers and screen readers do this issue affect?

No response

Are there any code-based customization done to Web Chat?

No, I am using Web Chat without any customizations except "styleOptions".

What version of Web Chat are you using?

Latest production

Which area does this issue affect?

Live region

What is the public URL for the website?

https://edfinancial.com

How to reproduce the issue?

This is feedback from the accessibility company Allyant who has been testing our website and has people who use screenreaders and other assistive technologies as a part of their testing team.

extraneous-article-tags

What do you expect?

Remove the extraneous

tags from the page. Also remove any child
or
compulim commented 6 months ago

This is by design. Chat history is implemented using feed/article roles, https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Feed_Role.

You can read more about it here, https://github.com/microsoft/BotFramework-WebChat/blob/main/docs/ACCESSIBILITY.md#using-rolefeed-and-rolearticle-to-represent-the-chat-history-and-activity.