import FullBundleStyleOptions from '../../../types/FullBundleStyleOptions'; export default function ({ cardPushButtonBackgroundColor, cardPushButtonTextColor, accent, paddingRegular, primaryFont }: FullBundleStyleOptions) { return { '&.webchat__adaptive-card-renderer': { // Related to #4075. // Adaptive Cards assume its host is in "forced border-box" mode. // In CSS, the default is "content-box" mode. // https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing#values '& *': { boxSizing: 'border-box' }, '& .ac-input, & .ac-inlineActionButton, & .ac-quickActionButton': { fontFamily: primaryFont }, '& .ac-multichoiceInput': { padding: paddingRegular }, '& .ac-pushButton': { appearance: 'none', backgroundColor: 'White', borderStyle: 'solid', borderWidth: 1, color: accent, fontWeight: 600, padding: paddingRegular }, '& .ac-pushButton.style-destructive': { backgroundColor: '#E50000', color: 'white' }, '& .ac-pushButton.style-destructive:hover, & .ac-pushButton.style-destructive:active': { backgroundColor: '#BF0000' }, '& .ac-pushButton.style-positive': { backgroundColor: '#0078D7', color: 'white' }, '& .ac-pushButton.style-positive:hover, & .ac-pushButton.style-positive:active': { backgroundColor: '#006ABC' }, // The following styles are copied from :disabled via Chromium. '& .ac-pushButton, & input, & select, & textarea': { '&[aria-disabled="true"]': { backgroundColor: 'rgba(239, 239, 239, 0.3)', borderColor: 'rgba(118, 118, 118, 0.3)', borderStyle: 'solid', borderWidth: 1, color: '#545454' } }, '& .ac-pushButton[aria-disabled="true"]': { backgroundColor: '#EEE', color: '#4F4F4F' }, '& .ac-pushButton[aria-pressed="true"]': { backgroundColor: cardPushButtonBackgroundColor, borderColor: cardPushButtonBackgroundColor, color: cardPushButtonTextColor, '@media (forced-colors: active)': { backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText', forcedColorAdjust: 'none' } }, '& input[aria-disabled="true"]': { padding: '2px 1px' } } }; }