Forum Discussion

purinat's avatar
purinat
Copper Contributor
Oct 15, 2024

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": "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": "👎", }, ], }, ], } 

 

 

 

 

3 Replies

    • purinat's avatar
      purinat
      Copper Contributor

      Nivedipa-MSFT 

      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's avatar
        Nivedipa-MSFT
        Icon for Microsoft rankMicrosoft

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