Fix codemirror cursor color (#8571)

This commit is contained in:
Bram Kragten 2021-03-06 23:11:57 +01:00 committed by GitHub
parent 4d3d27f2c4
commit 4a11975349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)",
},