microsoft / microsoft/AdaptiveCards

[Rendering] CodeBlock in Action.Popover on Mobile does not work

Open
#9,360 0 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

iOS, Android

SDK Version

1.5

Application Name

Microsoft Teams

Problem Description

It is rendered well in PC Ms Teams, but when i click the Popover button in iOS and Android, the Teams app is shutdown

Screenshots

No response

Card JSON
{
  "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.5",
  "msTeams": {
    "width": "full"
  },
  "body": [
    {
      "type": "Container",
      "style": "default",
      "spacing": "Medium",
      "separator": true,
      "items": [
        {
          "type": "ActionSet",
          "spacing": "Small",
          "actions": [
            {
              "type": "Action.Popover",
              "title": "Stack Trace",
              "content": {
                "type": "Container",
                "style": "attention",
                "items": [
                  {
                    "type": "TextBlock",
                    "text": "📋 Stack Trace",
                    "weight": "Bolder",
                    "size": "Medium",
                    "color": "Accent",
                    "wrap": true
                  },
                  {
                    "type": "CodeBlock",
                    "language": "Python",
                    "codeSnippet": "File: jdbc_connector.py:245\n  connection = create_connection(host, port)\nTimeoutError: Connection timeout after 30 seconds"
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
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

Start by reproducing the supplied Adaptive Card in Microsoft Teams on iOS and Android, focusing on the CodeBlock nested inside Action.Popover. Compare the mobile behavior with the working PC rendering; done means opening the popover no longer shuts down Teams and the code block remains usable on both target platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp, ios
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.