Forum Discussion

voonsionglum's avatar
voonsionglum
Brass Contributor
Jul 01, 2020
Solved

Microsoft Teams and Adaptive Cards: Themes and button rendering

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

 

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

 

 

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

  • 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.

2 Replies

  • 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.

Resources