microsoft / microsoft/AdaptiveCards

[Rendering] Unable to render Input.ChoiceSet with style 'Compact', the displayed effect is the same as that of style 'Expanded'

Open
#9,353 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

NodeJS

SDK Version

3.0.5

Application Name

React

Problem Description
  1. Unable to render Input.ChoiceSet with style 'Compact', the displayed effect is the same as that of style 'Expanded'
Image
  1. The latest designer already supports Fluent UI. How to use Fluent UI during SDK rendering?
    https://adaptivecards.microsoft.com/designer
Image
Screenshots

No response

Card JSON
{
	"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.6",
	"body": [{
		"type": "Input.ChoiceSet",
		"id": "myColor",
		"label": "What color do you want? (isMultiSelect:false, style:compact)",
		"value": "1",
		"choices": [{
			"title": "Red",
			"value": "1"
		}, {
			"title": "Green",
			"value": "2"
		}, {
			"title": "Blue",
			"value": "3"
		}]
	}, {
		"type": "Input.ChoiceSet",
		"id": "myColor2",
		"style": "expanded",
		"label": "What color do you want? (isMultiSelect:false, style:expanded)",
		"value": "1",
		"choices": [{
			"title": "Red",
			"value": "1"
		}, {
			"title": "Green",
			"value": "2"
		}, {
			"title": "Blue",
			"value": "3"
		}]
	}, {
		"type": "Input.ChoiceSet",
		"id": "myColor3",
		"isMultiSelect": true,
		"value": "1,3",
		"label": "What colors do you want? (isMultiSelect:true, style:compact)",
		"choices": [{
			"title": "Red",
			"value": "1"
		}, {
			"title": "Green",
			"value": "2"
		}, {
			"title": "Blue",
			"value": "3"
		}]
	}, {
		"type": "Input.ChoiceSet",
		"id": "myColor4",
		"isMultiSelect": true,
		"value": "1",
		"style": "expanded",
		"label": "What colors do you want? (isMultiSelect:true, style:expanded)",
		"choices": [{
			"title": "Red",
			"value": "1"
		}, {
			"title": "Green",
			"value": "2"
		}, {
			"title": "Blue",
			"value": "3"
		}],
		"wrap": false
	}, {
		"type": "Input.ChoiceSet",
		"id": "BU",
		"style": "filtered",
		"isMultiSelect": true,
		"choices": [{
			"title": "YFS",
			"value": "YFS"
		}, {
			"title": "ITC",
			"value": "12"
		}]
	}],
	"actions": [{
		"type": "Action.Submit",
		"title": "OK"
	}]
}
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Card JSON with the NodeJS React renderer at SDK version 3.0.5, comparing the compact and expanded Input.ChoiceSet cases. Trace the renderer entry point for Input.ChoiceSet and verify the displayed controls differ as specified. Also determine from the renderer documentation or existing integration whether Fluent UI is supported; done means the compact style renders distinctly and the Fluent UI usage path is documented or clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.