Skip to content

[Rendering] Hide container if no visible items #9379

@msxiaowang

Description

@msxiaowang

Target Platforms

Android

SDK Version

3.8.3

Application Name

M365 Copilot

Problem Description

For the below AC json, a gray area shows below text due to the emphasis container padding. No item shows because the only item is invisible. Can we hide the container if no visible items in it?

Screenshots

Image

Card JSON

{
                            "type": "AdaptiveCard",
                            "version": "1.2",
                            "body": [
                                {
                                    "type": "TextBlock",
                                    "text": "I'll connect to Coursera Learning Agent to help with this and future requests. You can manage access anytime in Settings.",
                                    "wrap": true
                                },
                                {
                                    "type": "Container",
                                    "items": [
                                        {
                                            "type": "Container",
                                            "id": "previewContainer",
                                            "items": [
                                                {
                                                    "type": "FactSet",
                                                    "facts": [
                                                        {
                                                            "title": "primarySubject",
                                                            "value": "sales negotiation tactics"
                                                        }
                                                    ]
                                                }
                                            ],
                                            "isVisible": false
                                        }
                                    ],
                                    "style": "emphasis"
                                }
                            ],
                            "msTeams": {
                                "width": "full"
                            }
                        }

Sample Code Language

No response

Sample Code

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions