microsoft / microsoft/AdaptiveCards

[Rendering] Misleading background color of Adaptive Card in different Microsoft Teams applications

Open
#8,917 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

Other

SDK Version

1.5

Application Name

Microsoft Teams

Problem Description

The same Adaptive Card have different background and border in different application:

  • Microsoft Teams for Windows desktop
    • no border
    • light gray background
  • Microsoft Teams Web app
    • dark border
    • light gray background
  • Microsoft Teams Android app
    • dark border
    • white background

This inconsistency is confusing in terms of how the Adaptive Card is displayed.

Additional, light gray background color of Adaptive Card makes the Styling of the elements look terrible. Default Style "Good", "Attention" and "Emphasis" are not enough visible, as difference between gray and this style color is not big enough.

Screenshots

Microsoft Teams for Windows desktop (version 24102.2223.2870.9480):
image-20240516-080959

Microsoft Teams Web app:
image-20240516-081115

Microsoft Teams Android app (version: 1416/1.0.0.2024083602/0507):
1 photo added

Card JSON
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": "stretch",
          "items": [
            {
              "type": "TextBlock",
              "text": "Text",
              "wrap": true,
              "fontType": "Default",
              "size": "Small"
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "TextBlock",
              "text": "Text",
              "fontType": "Default",
              "size": "Small",
              "horizontalAlignment": "Right"
            }
          ]
        }
      ]
    },
    {
      "type": "TextBlock",
      "text": "Text",
      "height": "stretch",
      "wrap": true
    },
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": "stretch",
          "style": "good",
          "items": [
            {
              "type": "TextBlock",
              "text": "False",
              "wrap": true,
              "horizontalAlignment": "Center",
              "height": "stretch",
              "fontType": "Default",
              "color": "default"
            }
          ]
        },
        {
          "type": "Column",
          "width": "stretch",
          "style": "emphasis",
          "items": [
            {
              "type": "TextBlock",
              "text": "true",
              "wrap": true,
              "horizontalAlignment": "Center",
              "fontType": "Default",
              "height": "stretch",
              "color": "default"
            }
          ]
        }
      ]
    }
  ]
}
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the supplied Adaptive Card JSON as the reproduction input and compare its rendering in Microsoft Teams for Windows desktop, the web app, and Android. Done means the card's background and border behavior is consistent across those hosts and the Good, Attention, and Emphasis styles remain visibly distinguishable.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.