question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistency in show card collapse behavior

See original GitHub issue

There is an inconsistency between renderers as to what should happen when another non-showcard button in a action set is pressed when a show card is showing. In javascript, pressing any other button will collapse the shown show card. In UWP and .NET, only pressing another ShowCard button will collapse the shown show card.

JS UWP/.NET
TSShowCard UWPShowCard

Repro card

{
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "My card"
        },
        {
            "type": "TextBlock",
            "text": "Content to toggle",
            "id": "toggle1",
            "isVisible": false
        },
        {
            "type": "TextBlock",
            "text": "Toggled content",
            "id": "toggle2"
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.ShowCard",
                    "title": "Action.ShowCard",
                    "card": {
                        "type": "AdaptiveCard",
                        "version": "1.0",
                        "body": [
                            {
                                "type": "TextBlock",
                                "text": "ShowCard contents",
                                "id": "hidey"
                            }
                        ],
                        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
                    }
                },
                {
                    "type": "Action.ToggleVisibility",
                    "title": "Action.ToggleVisibility",
                    "targetElements": [
                        "toggle1",
                        "toggle2"
                    ]
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dclauxcommented, Jul 12, 2019

@andrewleader I do, it is the behavior of the JS renderer. ShowCard was designed very early on and comes from the equivalent feature in Outlook Actionable Messages. The feature, including the interaction model, was designed by our designer at the time.

0reactions
msftbot[bot]commented, Dec 6, 2019

This issue has been automatically marked as stale because it has not had any activity for 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap Collapse Accordion Hover is not consistent
I'm working on creating a accordion that collapses/opens when the user hover's their mouse over the title of the accordion. The code I...
Read more >
Inconsistent drop down button behaviour in work packages toolbar
Every button on the toolbar behaves slightly differently (in terms of presence of arrow, change of arrow direction and behaviour when button is...
Read more >
12 Common CSS Browser Compatibility Issues To Avoid In ...
One of the unresolved issues has been visibility: collapse needs ... The card flip effect shows inconsistencies in three different browsers.
Read more >
Styling rule on collapsed PBI - Developer Community
Is there a way to add the styling rule color of the PBI to show when the work item is collapsed? ... Hello,...
Read more >
Collapse · Bootstrap
(similar to traditional accordion behavior - this is dependent on the card class). The attribute has to be set on the target collapsible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found