Skip to content

Adaptive Cards do not inherit style options properly #2565

@compulim

Description

@compulim

Screenshots

image

Version

4.6.0

Describe the bug

When we are creating Adaptive Cards host config, we are not using a default-merged style options.

If the dev did not specify style options, we show the card title in #000 color (inherited from default style options).

But if the dev specify style options of { richCardWrapTitle: true }, we show the card title in #333 color. This is because we did not merge default style options before creating a new Adaptive Cards host config. Thus, we are not using #000 as specified in default style options. Instead, we are using #333, which is the default value for Adaptive Cards host config.

To Reproduce

Steps to reproduce the behavior:

  1. Creates Web Chat with style options { richCardWrapTitle: true }
  2. Shows an Adaptive Card

Expected behavior

The card title should be in black color.

Instead, it is shown in dark gray of #333.

Additional context

[Bug]

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions