AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[MsTeams][Style] "style": "default" is not working in MsTeams

Open gauravsaralMs opened this issue 6 years ago • 4 comments

Platform

What platform is your issue or question related to? (Delete other platforms).

MsTeams

Author or host

Author

If you're an author, who are you sending cards to? MsTeams

Version of SDK

NA

What version are you using? Ex: NuGet 1.0.2, or latest main, etc...

Details

This is adaptive card we are posting

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.0",
  "body": [
    {
      "type": "Container",
      "items": [
        {
          "type": "TextBlock",
          "text": "Pull request opened by **gauravsaralMs**"
        },
        {
          "type": "TextBlock",
          "text": "[#354 Update README.md](https://github.com/gauravsaralMs/devops-tasks/pull/354)",
          "weight": "bolder",
          "spacing": "small",
          "size": "large"
        },
        {
          "type": "ColumnSet",
          "spacing": "small",
          "columns": [
            {
              "type": "Column",
              "width": "auto",
              "items": [
                {
                  "size": "small",
                  "type": "Image",
                  "url": "https://gsaral.ngrok.io/static/img/notification-card/pr-opened.png",
                  "height": "25px"
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "size": "small",
                  "type": "Image",
                  "url": "https://gsaral.ngrok.io/static/img/github-mark.png",
                  "height": "15px"
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "spacing": "small",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "[gauravsaralMs/devops-tasks](https://github.com/gauravsaralMs/devops-tasks)",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TextBlock",
          "text": "merge 1 commit into [master](https://github.com/gauravsaralMs/devops-tasks/tree/master) from [gauravsaralMs-patch-46](https://github.com/gauravsaralMs/devops-tasks/tree/gauravsaralMs-patch-46)",
          "spacing": "small",
          "wrap": "true"
        }
      ]
    },
    {
      "type": "Container",
      "separator": true,
      "items": [
        {
          "type": "ColumnSet",
          "columns": [
            {
              "type": "Column",
              "width": "auto",
              "items": [
                {
                  "size": "small",
                  "type": "Image",
                  "url": "https://gsaral.ngrok.io/static/img/notification-card/files-changed.png",
                  "height": "15px"
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "spacing": "small",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "[Files changed](https://github.com/gauravsaralMs/devops-tasks/pull/354/files) 1 "
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "type": "Container",
      "separator": true,
      "items": [
        {
          "type": "ColumnSet",
          "spacing": "small",
          "columns": [
            
          ]
        },
        {
          "type": "FactSet",
          "spacing": "None",
          "facts": [
            
          ]
        },
        {
          "type": "ActionSet",
          "actions": [
            {
              "type": "Action.ShowCard",
              "title": "Add a comment",
              "style": "default",
              "card": {
                "type": "AdaptiveCard",
                "body": [
                  {
                    "type": "Input.Text",
                    "isMultiline": true,
                    "id": "commentText"
                  },
                  {
                    "type": "ActionSet",
                    "actions": [
                      {
                        "type": "Action.Submit",
                        "title": "Submit",
                        "style": "default",
                        "data": {
                          "owner": "gauravsaralMs",
                          "repo": "devops-tasks",
                          "prNumber": "354",
                          "actionType": "prComment"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}

It works fine in https://adaptivecards.io/designer/ image

but in teams the color is coming as blue image

gauravsaralMs avatar Jul 29 '20 10:07 gauravsaralMs

Hi @gauravsaralMs. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions.

ghost avatar Jul 30 '20 23:07 ghost

Hi @gauravsaralMs. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions.

ghost avatar Aug 14 '20 15:08 ghost

@siduppal / @Wajeed-msft another example of an issue repro'ing only in Teams renderring but not in AC designer. Could you help take a look at this ? Thanks!

shalinijoshi19 avatar Aug 14 '20 15:08 shalinijoshi19

When you use action set to add button, Button will render with blue background This is a known issue, There is a bug on this.

Nikitha-MSFT avatar Aug 17 '20 04:08 Nikitha-MSFT