Skip to content

Commit 08cf2c5

Browse files
committed
feat(toaster): add border radius styling to toast notifications
1 parent 774a2a2 commit 08cf2c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dashboard/src/components/ui/sonner.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import useDirDetection from '@/hooks/use-dir-detection'
55
type ToasterProps = React.ComponentProps<typeof Sonner>
66

77
const Toaster = ({ ...props }: ToasterProps) => {
8-
const { resolvedTheme } = useTheme()
8+
const { resolvedTheme, radius } = useTheme()
99
const dir = useDirDetection()
1010

1111
return (
@@ -15,6 +15,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
1515
dir={dir}
1616
position={dir === 'rtl' ? 'top-left' : 'top-right'}
1717
toastOptions={{
18+
style: { borderRadius: radius },
1819
classNames: {
1920
toast: 'group font-body toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
2021
description: 'group-[.toast]:text-muted-foreground',

0 commit comments

Comments
 (0)