Skip to content

Commit 427e7f6

Browse files
committed
chore: Disable hydration warnings on dark mode class injection
1 parent 223609e commit 427e7f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/docs/src/app/layout.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ export const metadata = {
3333
export default function Layout({ children }: { children: ReactNode }) {
3434
const enableChiffreAnalytics = process.env.VERCEL_ENV === 'production'
3535
return (
36-
<html lang="en" className={cn(inter.className, 'antialiased')}>
36+
<html
37+
lang="en"
38+
className={cn(inter.className, 'antialiased')}
39+
// https://github.com/shadcn-ui/ui/issues/5552#issuecomment-2435024526
40+
suppressHydrationWarning
41+
>
3742
<body>
3843
<Banner
3944
variant="rainbow"

0 commit comments

Comments
 (0)