force light mode to avoid making the site look broken

This commit is contained in:
burnettk 2023-03-06 22:04:03 -05:00
parent 4fbb2b90fa
commit 51f7b60408
No known key found for this signature in database
1 changed files with 7 additions and 1 deletions

View File

@ -269,8 +269,14 @@ export default function TaskShow() {
} }
return ( return (
<div className="markdown"> <div className="markdown">
{/*
https://www.npmjs.com/package/@uiw/react-md-editor switches to dark mode by default by respecting @media (prefers-color-scheme: dark)
This makes it look like our site is broken, so until the rest of the site supports dark mode, turn off dark mode for this component.
*/}
<div data-color-mode="light">
<MDEditor.Markdown source={instructions} /> <MDEditor.Markdown source={instructions} />
</div> </div>
</div>
); );
}; };