mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-15 20:54:31 +00:00
force light mode to avoid making the site look broken
This commit is contained in:
parent
4fbb2b90fa
commit
51f7b60408
@ -269,7 +269,13 @@ export default function TaskShow() {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="markdown">
|
<div className="markdown">
|
||||||
<MDEditor.Markdown source={instructions} />
|
{/*
|
||||||
|
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} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user