microsoft / microsoft/BotFramework-WebChat
[White Label -Card Wizard]: Narrator announcing incorrect role as toggle button for Submit button
Nobody has claimed this yet.
- 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
- Open URL: chro and sign in using valid credentials.
- 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 Wizard word in type your message text box. - Response will appear.
- Navigate to the Name control and activate it.
- Navigate to Address control and activate it.
- Navigate to Phone email control and activate it.
- Navigate to submit control.
- 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. Submit button 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 Submit button
Do you have any screenshots or recordings to repro the issue?
No response
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Card Wizard flow in the white label experience with Narrator, following the listed Name, Address, Phone email, and Submit controls. Inspect the rendered elements and their programmatic roles, then verify that Positive, Default, and Destructive controls are announced as regular buttons rather than toggle buttons.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100