Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 7cef40a

Browse files
author
TheComputerM
committed
docs: fix code theme bug
1 parent b99c9fe commit 7cef40a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/docs/src/routes/_layout.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@
5151
<svelte:window on:resize={checkMobile} />
5252

5353
<svelte:head>
54-
<link rel="stylesheet" href="prism/material-light.css" disabled={$theme === 'dark'} />
55-
<link rel="stylesheet" href="prism/material-dark.css" disabled={$theme === 'light'} />
54+
<link
55+
rel="stylesheet"
56+
href="prism/material-light.css"
57+
disabled={$theme === 'dark' ? true : null} />
58+
<link
59+
rel="stylesheet"
60+
href="prism/material-dark.css"
61+
disabled={$theme === 'light' ? true : null} />
5662
</svelte:head>
5763

5864
<MaterialApp theme={$theme}>

0 commit comments

Comments
 (0)