SOLVED

Microsoft Teams and Adaptive Cards: Themes and button rendering

Brass Contributor

Hi,

We are using adaptive cards to present information to users in Teams.  The cards have Action.OpenUrl and Action.ShowCard buttons.  However, we see that the cards are rendering the buttons differently.  We would like to know how is rendering controlled?

 

For eg, the following image shows one card with all Action.OpenUrl buttons rendered in filled-purple

voonsionglum_0-1593577137682.png

 

This next image shows a different card with only 1 button.  The button is also an Action.OpenUrl button but it is rendered in white

 

voonsionglum_1-1593577190615.png

 

The JSON for both cards' action body does not have any rendering controls.  Would it be possible to apply consistent styling to the same action type: in this case, Action.OpenUrl?  

 

Thank You

2 Replies
best response confirmed by voonsionglum (Brass Contributor)
Solution

@voonsionglum - When you add button using action set the button will be rendered with background purple, If button is directly added to card then the card will be rendered with the white background. This is by design.

Thanks for letting me know :)
1 best response

Accepted Solutions
best response confirmed by voonsionglum (Brass Contributor)
Solution

@voonsionglum - When you add button using action set the button will be rendered with background purple, If button is directly added to card then the card will be rendered with the white background. This is by design.

View solution in original post