microsoft / microsoft/BotFramework-WebChat

[Adaptive Cards] Clickable adaptive card elements do not have correct pointer/hover state

Open
#5,130 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-accessibility Bot Services bug customer-reported
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?

Yes, this is an Adaptive Card issue, however it only repro on Web Chat.

Is this an accessibility issue?

Yes

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Unrelated

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest)

Which area does this issue affect?

Attachment: Adaptive Card

What is the public URL for the website?

No response

Please describe the bug

Clickable containers in adaptive cards do not have a hover state indicating they are clickable

Do you see any errors in console log?

No response

How to reproduce the issue?

Send adaptive card like this with selectable container:

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "Interview Preparation Assistant",
                    "wrap": true,
                    "style": "heading",
                    "horizontalAlignment": "Center"
                }
            ]
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "Container",
                    "items": [
                       {
                            "type": "Container",
                            "items": [
                                {
                                    "type": "Container",
                                    "items": [
                                        {
                                            "type": "Container",
                                            "items": [
                                                {
                                                    "type": "TextBlock",
                                                    "text": "Test",
                                                    "wrap": true,
                                                    "weight": "Bolder",
                                                    "spacing": "None"
                                                }
                                            ],
                                            "spacing": "Padding"
                                        },
                                    ],
                                    "spacing": "None"
                                }
                            ],
                            "bleed": true,
                            "separator": true,
                            "selectAction": {
                                "type": "Action.Submit",
                                "data": "value"
                            },
                            "spacing": "Medium"
                        }
                    ]
                }
            ]
        }
    ]
}
What do you expect?

Any item with 'ac-selectable' class should show cursor: pointer

What actually happened?

Any item with 'ac-selectable' class do not show as clickable

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

No response

Adaptive Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "Interview Preparation Assistant",
                    "wrap": true,
                    "style": "heading",
                    "horizontalAlignment": "Center"
                }
            ]
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "Container",
                    "items": [
                       {
                            "type": "Container",
                            "items": [
                                {
                                    "type": "Container",
                                    "items": [
                                        {
                                            "type": "Container",
                                            "items": [
                                                {
                                                    "type": "TextBlock",
                                                    "text": "Test",
                                                    "wrap": true,
                                                    "weight": "Bolder",
                                                    "spacing": "None"
                                                }
                                            ],
                                            "spacing": "Padding"
                                        },
                                    ],
                                    "spacing": "None"
                                }
                            ],
                            "bleed": true,
                            "separator": true,
                            "selectAction": {
                                "type": "Action.Submit",
                                "data": "value"
                            },
                            "spacing": "Medium"
                        }
                    ]
                }
            ]
        }
    ]
}
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

No file or test is named. Reproduce the Adaptive Card in Web Chat, then locate the styling or rendering entry point for elements with the ac-selectable class. Done means selectable elements visibly indicate clickability with a pointer cursor and the existing accessibility behavior remains intact.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.