Forum Discussion
purinat
Oct 15, 2024Copper Contributor
Button style positive not working on mobile app Teams
I just use style "positive" in action Action.ShowCard but still see as default on mobile app Teams { "type": "Container", "id": "feedback-block_result_mobile", "separator": True, "targetWidth": "...
purinat
Oct 16, 2024Copper Contributor
Sure! Here is my full adaptive card JSON
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "Container",
"id": "answer-block",
"items": [
{
"type": "TextBlock",
"text": "like feedback",
"wrap": true
},
{
"type": "Container",
"id": "feedback-block_result",
"separator": true,
"targetWidth": "atLeast:standard",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.ToggleVisibility",
"targetElements": [
"textToToggle"
],
"id": "resultselect_like",
"tooltip": "Helpful",
"iconUrl": "icon:ThumbLike",
"style": "positive"
},
{
"type": "Action.ToggleVisibility",
"targetElements": [
"textToToggle"
],
"id": "resultselect_dislike",
"tooltip": "Not helpful",
"iconUrl": "icon:ThumbDislike",
"style": "default"
}
]
}
]
},
{
"type": "Container",
"id": "feedback-block_result_mobile",
"separator": true,
"targetWidth": "atMost:narrow",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.ToggleVisibility",
"targetElements": [
"textToToggle"
],
"id": "result_like_mo",
"tooltip": "Helpful",
"title": "👍",
"style": "positive"
},
{
"type": "Action.ToggleVisibility",
"targetElements": [
"textToToggle"
],
"id": "result_dislike_mo",
"tooltip": "Not helpful",
"title": "👎",
"style": "default"
}
]
}
]
}
]
}
],
"msteams": {
"width": "Full"
}
}
Nivedipa-MSFT
Microsoft
Oct 17, 2024purinat - We have tested this on Teams web client and Mobile android version 14.
Mobile Teams version
Teams web client:
Android mobile
Button style is not working on Teams mobile. Its showing default style every time.
We have raised a bug for the same, we will let you know once we get any updates on it.