microsoft / microsoft/AdaptiveCards

Indicator on suggested actions (card action) for hero card to show that the action will open a URL

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

Nobody has claimed this yet.

Request
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

My original request posted on the webchat repo, however I was direct here as I am using an adaptive card in my example:

https://github.com/microsoft/BotFramework-WebChat/issues/3833

For the suggested actions for adaptive cards, I would like to indicate what type of action would be taken by clicking the button. For example for "Action.OpenUrl", I would like to indicate on the button that this will take you to an external URL:

image

At the moment this is no possible as every button is rendered with the same CSS so there is no way to differentiate which type of button has been rendered.

Is it possible to include the action type as part of the CSS on the rendered button as shown below?

image

@corinagum from the webchat repo suggested adding role=link for buttons that use the "openurl" action type

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 by tracing the adaptive-card suggested-action renderer and the shared CSS for rendered buttons, then compare Action.OpenUrl with the other action types. Done means URL-opening actions have a distinguishable link indication while other actions retain their existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.