microsoft / microsoft/BotFramework-WebChat

[White Label -Card Actionstyles]: Narrator announcing incorrect role as toggle button for Positive, Default and Destructive controls.

Open
#5,716 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A11ySev2 A11yWCAG Accessibility area-accessibility Bot Services BotFrameworkWebChat_Web bug customer-reported HCL-BIC
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Is it an issue related to Adaptive Cards?

No response

What is the PWD impact?

Screen reader users rely on role announcements to understand how a control behaves. When these action buttons are incorrectly announced as toggle buttons, users may think the control needs to be turned on or off, leading to confusion and incorrect interaction expectations.

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?

Others or unrelated

What is the public URL for the website?

No response

How to reproduce the issue?

Pre-Requisite:
Turn on Narrator

Repro Steps

  1. Open URL: https://compulim.github.io/webchat-loader/ and sign in using valid credentials.
  2. Navigate to web chat page and select 4.18.1-main.20240927.ea7a875 (30/9/2024) version and then select mockBot link under present label and then select open web chat in new window link at bottom.
    3.Navigate to white label experience chat page and type Card Actionstyles word in type your message text box.
  3. Response will appear.
  4. Navigate to the Positive control.
  5. Observe an issue that Narrator announcing incorrect role as toggle button for Positive, Default and Destructive controls.
What do you expect?

The element should expose a correct programmatic role that reflects its actual behaviour. Positive, Default and Destructive action controls should be announced as regular buttons or appropriate action controls, not as toggle buttons.

What actually happened?

Narrator announcing incorrect role as toggle button for Positive, Default and Destructive controls.

Do you have any screenshots or recordings to repro the issue?

https://github.com/user-attachments/assets/2ab93c20-262c-4847-b0e2-8fceb32e47a3

Did you find any DOM elements that might have caused the issue?

No response

MAS reference

No response

WCAG reference

https://www.w3.org/WAI/WCAG21/Understanding/name-role-value

WAI-ARIA reference

No response

Adaptive Card JSON

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the white label Card Actionstyles experience described in the reproduction steps and inspect the rendered Positive, Default, and Destructive controls with Narrator. The work is done when these controls expose and announce a regular button or other appropriate action role instead of a toggle button.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.