AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Android] [Accessibility] Showing card actions horizontally when there're not enough space

Open SiarheiKuchukBelitsoft opened this issue 6 years ago • 13 comments

Platform

  • Teams for Android

Author or host

Bot sends card to user

Version of SDK

Node.JS package botbuilder version 4.7.2

Details

Steps to reproduce:

  1. Open Teams and install Microsoft Apps Studio
  2. Go to App Studio, click New Card and paste the JSON below { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "wrap": true, "text": "Problem with wrapping text of adaptive card actions." } ], "actions": [ { "type": "Action.ShowCard", "title": "Button with long text", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "This is a show card" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" } }, { "type": "Action.ShowCard", "title": "Button with long text", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "This is a show card" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" } }, { "type": "Action.ShowCard", "title": "Button with long text", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "This is a show card" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" } }, { "type": "Action.ShowCard", "title": "Button with long text", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "This is a show card" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" } }, { "type": "Action.ShowCard", "title": "Button with long text", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "This is a show card" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" } }, { "type": "Action.ShowCard", "title": "Button with long text", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "This is a show card" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json" } } ] }
  3. Click Send to me as a Card
  4. Open Teams app on Android and observe the result image

Actual behavior: Action cards are stacked horizontally without scroll bar when there're not enough space to show them all

Expected behavior: Wrap cards and show them vertically if there're not enough space

SiarheiKuchukBelitsoft avatar Apr 13 '20 13:04 SiarheiKuchukBelitsoft

@SiarheiKuchukBelitsoft Thanks for sharing this info. The behavior you desired is supported via HostConfig. The hostconfig is managed by host app, in this case, it's Teams Mobile app.

The buttons are actually horizontally scrollable although it's missing the scroll bar indicator. @shbhadra, is there a plan for adding a scroll bar for actions?

jwoo-msft avatar Apr 13 '20 23:04 jwoo-msft

@jwoo-msft, The same behavior I observe for Teams for IOS.

SiarheiKuchukBelitsoft avatar Apr 14 '20 09:04 SiarheiKuchukBelitsoft

@VikrantSingh01 / @jwoo-msft is this something ath needs to be addressed on the Teams end here?

shalinijoshi19 avatar Apr 17 '20 15:04 shalinijoshi19

We have acknowledged this issue report. Please continue to follow the issue for updates/progress/questions. @matthidinger / @dclaux / @rebeccaanne / @paulcam206 / @nesalang / @almedina-ms FYI.

ghost avatar Apr 17 '20 15:04 ghost

@shalinijoshi19 Could you help me forward this issue to Teams?

jwoo-msft avatar Apr 22 '20 00:04 jwoo-msft

@SiarheiKuchukBelitsoft Thanks for reporting this. We have raised a bug for this and we are looking into it.

Gousia-Begum avatar Apr 23 '20 05:04 Gousia-Begum

@Gousia-MSFT, thanks! You're doing a great job with Teams. It serves so well as corporate chat, planner, etc...

SiarheiKuchukBelitsoft avatar Apr 23 '20 08:04 SiarheiKuchukBelitsoft

This is being fixed in the June sprint by Teams Mobile Platform

anbah34 avatar May 13 '20 07:05 anbah34

One more mention of the bug here: https://stackoverflow.com/questions/62470617/how-would-it-be-possible-that-adaptive-cards-in-microsoft-teams-for-android-neve

DeeJayTC avatar Jun 23 '20 09:06 DeeJayTC

#3705 #3865

Seem to be similar or related aswell

DeeJayTC avatar Jun 23 '20 09:06 DeeJayTC

@anbah34 did the June release wtih the fix go out? Could you drop a link to the release here for reference at all?

Also @DeeJayTC / @SiarheiKuchukBelitsoft closing this issue out now; Pls feel free to file a new one or reactivate if you find this is not fixed with the latest Teams release

shalinijoshi19 avatar Nov 16 '20 20:11 shalinijoshi19

@shalinijoshi19 yes this was fixed back in June/ july and can be checked/ validated on the current store build.

Change made - Buttons wrap in a card rather than being shown horizontally

anbah34 avatar Nov 23 '20 07:11 anbah34

Bug is Resolved now, we have tested this at our end, could you please also check and confirm? The issue is with the Teams client which is fixed now.

Nikitha-MSFT avatar Nov 25 '20 08:11 Nikitha-MSFT