microsoft / BotFramework-WebChat

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

Programmatic Access - Bot Framework Web Chat- Card Sportsclub]: 'Alt ' text or role='none/presentation' is not defined for the for the image under 'Card Sportsclub' #5354

Open manojs5 opened 2 weeks ago

manojs5 commented 2 weeks ago

Is it an issue related to Adaptive Cards?

No.

What is the PWD impact?

User Experience:

When elements lack alt text, it can significantly hinder the accessibility of the content for these users. Screen readers rely on alt text to convey the meaning and context of images to users who cannot view them visually. Without alt text, screen reader users may miss important information or context provided by the images.

Note:

User credentials should NOT be included in the bug.

What browsers and screen readers do this issue affect?

Windows: Edge with Windows Narrator

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?

ARIA roles

What is the public URL for the website?

https://compulim.github.io/webchat-loader/

How to reproduce the issue?

  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 Sportsclub word in type your message text box.
  4. Navigate to the search results. Run AI.
  5. Verify the issue

What do you expect?

There should be alternate text or a role of none or presentation for the images.

Ex:

Ensures elements have alternate text or a role of none or presentation

What actually happened?

'Alt ' text or role='none/presentation' is not defined for the for the image under 'Card Sportsclub' .

Observation:

Screen reader (Narrator, nvda, jaws) announces as 'Unlabeled graphic to get missing image descriptions, open the context menu'.

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

Image

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

No response

MAS reference

MAS 1.1.1 – Non-text Content

WCAG reference

1.1.1 Non-text Content

WAI-ARIA reference

No response

Adaptive Card JSON

No response

Additional context

Issue:

Ensures elements have alternate text or a role of none or presentation (image-alt - )

Target application:

Web Chat -

Element path:

.ac-container[dir="ltr"]:nth-child(1) > div > .ac-image

Snippet:

### How to fix: Fix any of the following: - Element does not have an alt attribute - aria-label attribute does not exist or is empty - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty - Element has no title attribute - Element's default semantics were not overridden with role="none" or role="presentation"
manojs5 commented 2 weeks ago

A11YAuto;#A11yMAS;#A11ySev2;#Accessibility;;#Benchmark;#BotFrameworkWebChat-Oct24;#HCL;#K4W;#MAS1.1.1;#Win11-Edge(Chromium);

Kirank915 commented 4 days ago

@OEvgeny could you please confirm if we need to route this bug as external to adaptive cards or will your team only fix this issue?