microsoft / microsoft/AdaptiveCards
Indicator on suggested actions (card action) for hero card to show that the action will open a URL
Nobody has claimed this yet.
- 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:

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?

@corinagum from the webchat repo suggested adding role=link for buttons that use the "openurl" action type
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 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