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

Commit

Permalink
docs: fix code theme bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Nov 16, 2020
1 parent b99c9fe commit 7cef40a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/docs/src/routes/_layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@
<svelte:window on:resize={checkMobile} />

<svelte:head>
<link rel="stylesheet" href="prism/material-light.css" disabled={$theme === 'dark'} />
<link rel="stylesheet" href="prism/material-dark.css" disabled={$theme === 'light'} />
<link
rel="stylesheet"
href="prism/material-light.css"
disabled={$theme === 'dark' ? true : null} />
<link
rel="stylesheet"
href="prism/material-dark.css"
disabled={$theme === 'light' ? true : null} />
</svelte:head>

<MaterialApp theme={$theme}>
Expand Down

1 comment on commit 7cef40a

@vercel
Copy link

@vercel vercel bot commented on 7cef40a Nov 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.