Skip to content

Commit 83478ae

Browse files
committed
Also add color: black to the light theme.
This is also needed if the page is in dark mode. I hate to bump the version just for this.
1 parent 84dadb1 commit 83478ae

3 files changed

Lines changed: 30 additions & 11 deletions

File tree

package-lock.json

Lines changed: 28 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openwebwork/pg-codemirror-editor",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "PG CodeMirror Editor",
55
"author": "The WeBWorK Project",
66
"license": "MIT",

src/light-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { tags as t } from '@lezer/highlight';
22
import { EditorView } from '@codemirror/view';
33
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
44

5-
const lightEditorTheme = EditorView.theme({ '&': { backgroundColor: 'white' } }, { dark: false });
5+
const lightEditorTheme = EditorView.theme({ '&': { backgroundColor: 'white', color: 'black' } }, { dark: false });
66

77
export const lightHighlightStyle = HighlightStyle.define([
88
{ tag: t.meta, color: '#404740' },

0 commit comments

Comments
 (0)