Skip to content

Commit ff94e6c

Browse files
Update InitColorSchemeScript options to match colorSchemeSelector
1 parent ab19e75 commit ff94e6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function RootLayout(props: { children: React.ReactNode }) {
4949
return (
5050
<html lang="en" suppressHydrationWarning>
5151
<body>
52-
<InitColorSchemeScript />
52+
<InitColorSchemeScript attribute="data" />
5353
{props.children}
5454
</body>
5555
</html>
@@ -70,7 +70,7 @@ export default function MyDocument(props) {
7070
<Html lang="en">
7171
<Head>{/* tags */}</Head>
7272
<body>
73-
<InitColorSchemeScript />
73+
<InitColorSchemeScript attribute="data" />
7474
<Main />
7575
<NextScript />
7676
</body>

0 commit comments

Comments
 (0)