Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive Card: Not FluentUI Icon on Mobile Device #12150

Open
jker-org opened this issue Jan 27, 2025 · 7 comments
Open

Adaptive Card: Not FluentUI Icon on Mobile Device #12150

jker-org opened this issue Jan 27, 2025 · 7 comments
Assignees
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@jker-org
Copy link

jker-org commented Jan 27, 2025

Steps to reproduce

Hi everyone,

We just stumbled upon the possibility of using FluentUI icons in AdaptiveCards like this:

"actions": [
{
"type": "Action.OpenUrl",
"title": "Filled icon",
"url": "https://www.microsoft.com",
"iconUrl": "icon:AccessTime,filled"
}
]

Source: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cdesktop1%2Cdesktop2%2Cconnector-html#icons-in-adaptive-card

This looks really sharp! However, the icons are only displayed on desktop devices. On mobile devices (iOS), the icons appear greyed out.

Are FluentUI icons not yet supported on mobile devices, or is this a bug?

Thanks for checking!

Expected behavior

FluentUI icons are also shown on mobile devices.

Actual behavior

FluentUI icons are greyed out on mobile devices.

Error details

Copy link
Contributor

Hi jker-org! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@Prasad-MSFT Prasad-MSFT self-assigned this Jan 28, 2025
@Prasad-MSFT Prasad-MSFT added teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label and removed needs-triage 🔍 labels Jan 28, 2025
@Prasad-MSFT
Copy link
Collaborator

@jker-org , thanks for raising the issue. We will check and get back to you shortly.

@Prasad-MSFT
Copy link
Collaborator

Hi @jker-org, we checked the same JSON in iOS 18.2.1 having Microsoft Teams version 6.23.1 and observed that the card gets rendered correctly same as android/desktop client.

iOS:

Image

Image

Desktop:

Image

@jker-org
Copy link
Author

@Prasad-MSFT : Sorry, I forgot to mention the mode. When you use it in secondary mode, the actions will hide under a button with "...". If you click that button, you will get a submenu that popups from below the screen. Here, the icons are greyed out. Sorry for the confusion.

"actions": [
{
"type": "Action.OpenUrl",
"title": "Filled icon",
"url": "https://www.microsoft.com",
"iconUrl": "icon:AccessTime,filled",
"mode":"secondary"
}
]

@Prasad-MSFT
Copy link
Collaborator

Hi @jker-org, using "mode":"secondary", the card now renders as below. Is this the same case for you as well?

Image

@jker-org
Copy link
Author

@Prasad-MSFT : Thank you for your update. Yes, that is the same issue we have encountered.

@Prasad-MSFT
Copy link
Collaborator

Hi @jker-org, we have raised a bug for this issue. We will inform you once we get any further update from engineering team.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

2 participants