[英]Styling action.submit button doesn't work in Adaptive card
I've tried adding style
for a Submit button in the designer as well as in the local setup, but it doesn't seem to work in any of the Adaptive cards' versions.我已经尝试在设计器以及本地设置中为提交按钮添加
style
,但它似乎不适用于任何自适应卡的版本。
For some reason, when multiple items are being rendered, the last button has got another background color for which I tried adding a style but it doesn't work.出于某种原因,当渲染多个项目时,最后一个按钮有另一种背景颜色,我尝试为其添加样式但它不起作用。
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"style": "destructive"
}
]
}
Teams Does not support Card action button styling in cards. Teams 不支持卡片中的卡片操作按钮样式。 This is by design.
这是设计使然。 The same is mentioned as a note here https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-actions?tabs=json#adaptive-cards-actions
这里提到了同样的注释https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-actions?tabs=json#adaptive-cards-actions
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.