diff --git a/src/components/Toast/Toast.styles.ts b/src/components/Toast/Toast.styles.ts index ac6c6a53..327895cf 100644 --- a/src/components/Toast/Toast.styles.ts +++ b/src/components/Toast/Toast.styles.ts @@ -1,5 +1,4 @@ import type { ToastEmphasis, ToastIntent } from './types'; -import { BareButtonProps } from '../Button/Button.props'; import type { BaseProps } from '@/types/BaseProps'; import type { IconName } from '@/utility-types/IconName'; @@ -19,9 +18,8 @@ export type ToastConfig = { } & BaseProps; actionContainer?: BaseProps; middleDot?: { - emphasis: Partial< - Record> - >; + emphasis: Partial>; + intent: Partial>; } & BaseProps; closeButton?: BaseProps; }; @@ -136,6 +134,15 @@ export const defaultConfig = { color: '$color-content-tertiary', }, }, + intent: { + neutral: {}, + informative: {}, + success: {}, + warning: { + color: '$color-content-secondary', + }, + negative: {}, + }, }, closeButton: { ml: '$space-component-padding-large', diff --git a/src/components/Toast/Toast.tsx b/src/components/Toast/Toast.tsx index 41c344dd..09129d89 100644 --- a/src/components/Toast/Toast.tsx +++ b/src/components/Toast/Toast.tsx @@ -57,9 +57,9 @@ export const Toast: FC = ({