Skip to content

Commit 3b0f3ac

Browse files
committed
update snapshots
1 parent e146a5f commit 3b0f3ac

5 files changed

Lines changed: 24 additions & 17 deletions

File tree

211 Bytes
Loading

packages/api/src/StyleOptions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,12 +946,14 @@ type StyleOptions = {
946946
fontColorPrimary?: string;
947947
fontColorSecondary?: string;
948948
primaryButtonBackgroundColor?: string;
949+
primaryButtonFontColor?: string;
949950
primaryButtonBackgroundColorOnHover?: string;
950951
primaryButtonBackgroundColorOnActive?: string;
951-
primaryButtonBackgroundCoorOnDisabled?: string;
952+
primaryButtonBackgroundColorOnDisabled?: string;
952953
secondaryButtonBackgroundColor?: string;
953954
secondaryButtonBackgroundColorOnHover?: string;
954955
secondaryButtonBorderColor?: string;
956+
secondaryButtonFontColor?: string;
955957
textBoxBackgroundColor?: string;
956958
textBoxBorderColor?: string;
957959
textBoxBorderColorOnFocus?: string;

packages/api/src/defaultStyleOptions.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -310,18 +310,20 @@ const DEFAULT_OPTIONS: Required<StyleOptions> = {
310310

311311
fontColorPrimary: 'black',
312312
fontColorSecondary: 'black',
313-
primaryButtonBackgroundColor: '',
314-
primaryButtonBackgroundColorOnHover: '',
315-
primaryButtonBackgroundColorOnActive: '',
316-
primaryButtonBackgroundCoorOnDisabled: '',
317-
secondaryButtonBackgroundColor: '',
318-
secondaryButtonBackgroundColorOnHover: '',
319-
secondaryButtonBorderColor: '',
320-
textBoxBackgroundColor: '',
321-
textBoxBorderColor: '',
322-
textBoxBorderColorOnFocus: '',
323-
textBoxBorderColorOnActive: '',
324-
textBoxTextColor: '',
313+
primaryButtonBackgroundColor: DEFAULT_ACCENT,
314+
primaryButtonFontColor: 'white',
315+
primaryButtonBackgroundColorOnHover: DEFAULT_ACCENT,
316+
primaryButtonBackgroundColorOnActive: DEFAULT_ACCENT,
317+
primaryButtonBackgroundColorOnDisabled: DEFAULT_ACCENT,
318+
secondaryButtonFontColor: 'black',
319+
secondaryButtonBackgroundColor: 'White',
320+
secondaryButtonBackgroundColorOnHover: 'White',
321+
secondaryButtonBorderColor: DEFAULT_SUBTLE,
322+
textBoxBackgroundColor: 'White',
323+
textBoxBorderColor: 'black',
324+
textBoxBorderColorOnFocus: 'black',
325+
textBoxBorderColorOnActive: 'black',
326+
textBoxTextColor: 'black',
325327
textBoxMinHeight: 40,
326328
textBoxMinWidth: 280,
327329

packages/component/src/Styles/useCustomPropertiesClassName.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ export default function useCustomPropertiesClassName() {
3131
fontColorPrimary,
3232
fontColorSecondary,
3333
primaryButtonBackgroundColor,
34+
primaryButtonFontColor,
3435
primaryButtonBackgroundColorOnHover,
3536
primaryButtonBackgroundColorOnActive,
36-
primaryButtonBackgroundCoorOnDisabled,
37+
primaryButtonBackgroundColorOnDisabled,
3738
secondaryButtonBackgroundColor,
39+
secondaryButtonFontColor,
3840
secondaryButtonBackgroundColorOnHover,
3941
secondaryButtonBorderColor,
4042
textBoxBackgroundColor,
@@ -80,13 +82,13 @@ export default function useCustomPropertiesClassName() {
8082
${CustomPropertyNames.FeedbackFormTitleColor}: ${fontColorPrimary};
8183
${CustomPropertyNames.FeedbackFormDisclaimerColor}: ${fontColorSecondary};
8284
${CustomPropertyNames.FeedbackFormSubmitButtonColor}: ${primaryButtonBackgroundColor};
83-
${CustomPropertyNames.FeedbackFormSubmitButtonFontColor}: ${fontColorPrimary};
85+
${CustomPropertyNames.FeedbackFormSubmitButtonFontColor}: ${primaryButtonFontColor};
8486
${CustomPropertyNames.FeedbackFormSubmitButtonHoverColor}: ${primaryButtonBackgroundColorOnHover};
8587
${CustomPropertyNames.FeedbackFormSubmitButtonActiveColor}: ${primaryButtonBackgroundColorOnActive};
86-
${CustomPropertyNames.FeedbackFormSubmitButtonDisabledColor}: ${primaryButtonBackgroundCoorOnDisabled};
88+
${CustomPropertyNames.FeedbackFormSubmitButtonDisabledColor}: ${primaryButtonBackgroundColorOnDisabled};
8789
${CustomPropertyNames.FeedbackFormCancelButtonColor}: ${secondaryButtonBackgroundColor};
8890
${CustomPropertyNames.FeedbackFormCancelButtonBorderColor}: ${secondaryButtonBorderColor};
89-
${CustomPropertyNames.FeedbackFormCancelButtonFontColor}: ${fontColorPrimary};
91+
${CustomPropertyNames.FeedbackFormCancelButtonFontColor}: ${secondaryButtonFontColor};
9092
${CustomPropertyNames.FeedbackFormCancelButtonHoverColor}: ${secondaryButtonBackgroundColorOnHover};
9193
${CustomPropertyNames.FeedbackFormSendBoxBackgroundColor}: ${textBoxBackgroundColor};
9294
${CustomPropertyNames.FeedbackFormSendBoxBorderColor}: ${textBoxBorderColor};

packages/core/src/types/WebChatActivity.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ type ChannelData<SendStatus extends SupportedSendStatus | undefined, Type extend
115115

116116
feedbackLoop?: {
117117
type: 'default';
118+
disclaimer?: string;
118119
};
119120
}
120121
: Record<any, any>)

0 commit comments

Comments
 (0)