Fix codemirror cursor color (#8571)

This commit is contained in:
Bram Kragten 2021-03-06 23:11:57 +01:00
parent 7449f7e73f
commit 8ec3cbdb33
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -37,14 +37,17 @@ export const theme = CMEditorView.theme({
backgroundColor:
"var(--code-editor-background-color, var(--card-background-color))",
"& ::selection": { backgroundColor: "rgba(var(--rgb-primary-color), 0.3)" },
caretColor: "var(--secondary-text-color)",
height: "var(--code-mirror-height, auto)",
maxHeight: "var(--code-mirror-max-height, unset)",
},
"&.cm-focused": { outline: "none" },
"&.cm-focused .cm-cursor": {
borderLeftColor: "#var(--secondary-text-color)",
borderLeftColor: "var(--secondary-text-color)",
},
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground": {
backgroundColor: "rgba(var(--rgb-primary-color), 0.3)",
},