microsoft / microsoft/AdaptiveCards

[Rendering] Defined styling colors needs more contrast in Microsoft Teams

Open
#9,184 2 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 background colors used for columns and containers in specific styles are too light and do not provide enough contrast against the Adaptive Card’s light gray background in Microsoft Teams. The colors blend in too much, making the elements hard to see and causing the overall styling to look poor. This issue affects all styles:

  • good
  • emphasis
  • attention
  • accent
  • warning
Screenshots

In classic mode:
Image

In light mode:
Image

In dark mode:
Image

Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "stretch",
                    "style": "good",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "good",
                            "wrap": true,
                            "horizontalAlignment": "Center"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "style": "emphasis",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "emphasis",
                            "wrap": true,
                            "horizontalAlignment": "Center"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "style": "attention",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "attention",
                            "wrap": true,
                            "horizontalAlignment": "Center"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "style": "accent",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "accent",
                            "wrap": true,
                            "horizontalAlignment": "Center"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "style": "warning",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "warning",
                            "wrap": true,
                            "horizontalAlignment": "Center"
                        }
                    ]
                }
            ]
        }
    ]
}
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

Reproduce the supplied Adaptive Card JSON in Microsoft Teams across classic, light, and dark modes, then locate the rendering implementation that defines colors for the good, emphasis, attention, accent, and warning styles. Done means those five styles are visibly distinct from the light gray card background without degrading the other modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.