microsoft / BotFramework-WebChat

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

Kaiser Permanente: Azure chat bot improperly using aria-roledescription attribute - missing semantic role #3592

Closed Amit8527510735 closed 3 years ago

Amit8527510735 commented 3 years ago

Accessibility 161217: Azure chat bot improperly using aria-roledescription attribute - missing semantic role

Product name, version, and build: Azure Chat Bot, Edge/Chrome v.86

OS version and build: Windows 10

AT version and build (if applicable): JAWS 2020, NVDA 2020.3

Does this repro with other AT? (If applicable) Yes, Narrator and NVDA

Share access to the environment (if applicable).:

Prerequisite (if any)

Description When accessing the customer's chat experience, a number of elements are using the aria-roledescription property to add more detail to the semantic role. In several cases where this is used, the roledescription property MUST be accompanied by a semantic role (aria or otherwise). Accessible Rich Internet Applications (WAI-ARIA) 1.1 (w3.org)

Repro steps

  1. Open URL to environment in Chrome/edge
  2. Submit a zip code and press Enter
  3. Right-click the box labeled "Great! Now, Let’s focus your search a little more."
  4. Select inspect element
  5. Observe in source code for chat bubble, there is a DIV given aria-roledescription="message"
Bot said:

Great! Now, Let’s focus your search a little more.

What service type are you looking for in the 10000 area?

Screenshots N/A

Actual results The element given aria-roledescription needs to have a semantic role. A div given aria-roledescription is insufficient

Expected Results User would understand that this is an interactive control with a semantic role. If not an interactive control, should not use aria-roledescription

WCAG Reference Link: https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html

Amit8527510735 commented 3 years ago

Accessibility;#WCAG4.1.2;#HCL;#HCL_BotFramework_WebChat;#A11yMAS

corinagum commented 3 years ago

This is a duplicate of https://github.com/microsoft/BotFramework-WebChat/issues/3537, and is fixed in our R11 release, of which the CDN version is planned to be released today.

[UPDATE] - the CDN released has been postponed to next week. Please check back then for 4.11!