forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdaptiveCardsStyleOptions.ts
More file actions
47 lines (40 loc) · 1.67 KB
/
Copy pathAdaptiveCardsStyleOptions.ts
File metadata and controls
47 lines (40 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Adaptive Cards styling
*/
type StrictAdaptiveCardsStyleOptions = {
/** Adaptive Cards: Specify the maximum schema version supported by the Adaptive Card serializer. */
adaptiveCardsParserMaxVersion: string | undefined;
/**
* Adaptive Cards styling for 'emphasis' container style
*/
cardEmphasisBackgroundColor: string | undefined;
/**
* Adaptive Cards: background color of Adaptive Cards button with status of 'aria-pressed'
*/
cardPushButtonBackgroundColor: string | undefined;
/**
* Adaptive Cards: text color of Adaptive Cards button with status of 'aria-pressed'
*/
cardPushButtonTextColor: string | undefined;
/**
* Cards: Rich Cards
* Enable title (and subtitle) wrapping
*/
richCardWrapTitle: boolean | undefined;
/**
* Cards: Rich Cards
*
* When `true` (default, preserves historical behavior), the title of a hero/thumbnail/audio/video/
* animation/receipt card is rendered with Adaptive Cards `style: 'heading'`, which the Adaptive
* Cards SDK exposes via `role="heading"` + `aria-level`.
*
* Set to `false` when these card titles are not navigational headings in your host page
* (e.g. when card titles appear inside a chat transcript and would create misleading
* heading structure for assistive technology). See:
* - Original request to add the heading: https://github.com/microsoft/BotFramework-WebChat/issues/4327
* - Reverse request to make it removable: (the audit motivating this option)
*/
richCardTitleAsHeading: boolean | undefined;
};
type AdaptiveCardsStyleOptions = Partial<StrictAdaptiveCardsStyleOptions>;
export type { AdaptiveCardsStyleOptions, StrictAdaptiveCardsStyleOptions };