From 2ecec73632ba34c952de9ecd97444259d3c48bc1 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 12 Sep 2024 18:15:59 +1000 Subject: [PATCH] revert: alert theme Turns out the alert thing is also used for toasts, so this change inadvertently affected all toasts. Reverting for now. --- lib/theme/components/alert.ts | 16 ---------------- lib/theme/components/index.ts | 2 -- 2 files changed, 18 deletions(-) delete mode 100644 lib/theme/components/alert.ts diff --git a/lib/theme/components/alert.ts b/lib/theme/components/alert.ts deleted file mode 100644 index c400739..0000000 --- a/lib/theme/components/alert.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { alertAnatomy as parts } from '@chakra-ui/anatomy'; -import { createMultiStyleConfigHelpers } from '@chakra-ui/styled-system'; - -const { defineMultiStyleConfig, definePartsStyle } = createMultiStyleConfigHelpers(parts.keys); - -const baseStyle = definePartsStyle(() => ({ - container: { - borderRadius: 'base', - fontSize: 'sm', - shadow: 'md', - }, -})); - -export const alertTheme = defineMultiStyleConfig({ - baseStyle, -}); diff --git a/lib/theme/components/index.ts b/lib/theme/components/index.ts index 88c3e29..4403a8e 100644 --- a/lib/theme/components/index.ts +++ b/lib/theme/components/index.ts @@ -1,7 +1,6 @@ import type { ThemeOverride } from '@chakra-ui/react'; import { accordionTheme } from './accordion'; -import { alertTheme } from './alert'; import { badgeTheme } from './badge'; import { buttonTheme } from './button'; import { cardTheme } from './card'; @@ -26,7 +25,6 @@ import { tooltipTheme } from './tooltip'; export const components: ThemeOverride['components'] = { Accordion: accordionTheme, - Alert: alertTheme, Badge: badgeTheme, Button: buttonTheme, Card: cardTheme,