AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

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

Open MajaEffenberg opened this issue 6 months ago • 2 comments

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

MajaEffenberg avatar Jun 02 '25 14:06 MajaEffenberg

Hello @MajaEffenberg , Thank you for your report!! We were able to reproduce the issue in the Desktop Teams version [25094.310.3616.953.]. We have reported this as a bug for further investigation.

We will keep you updated as soon as we receive further information if it is bug or byDesign behaviour. Thank you for bringing this to our attention!

Image

sayali-MSFT avatar Jun 03 '25 06:06 sayali-MSFT

@sayali-MSFT anything more on this? With this colors it is super hard (or even impossible) to be compatible with EU law (https://commission.europa.eu/strategy-and-policy/policies/justice-and-fundamental-rights/disability/union-equality-strategy-rights-persons-disabilities-2021-2030/european-accessibility-act_en)

sschoeb avatar Jul 21 '25 08:07 sschoeb