microsoft / AdaptiveCards

A new way for developers to exchange card content in a common and consistent way.
https://adaptivecards.io
MIT License
1.74k stars 543 forks source link

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

Open vzv111 opened 3 years ago

vzv111 commented 3 years ago

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

jonmill commented 3 years ago

Thanks for the interesting idea, we'll add it to the backlog!