Skip to content

Commit 92e437d

Browse files
committed
improve selection style
1 parent 7bc23dc commit 92e437d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/CodeMirror.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,9 @@ let createEditor = (config: editorConfig): editorInstance => {
686686
"color": "#cdcdd6",
687687
"backgroundColor": "inherit",
688688
},
689+
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": dict{
690+
"backgroundColor": "rgba(255, 255, 255, 0.20)",
691+
},
689692
},
690693
),
691694
CM6.EditorView.drawSelection(),

0 commit comments

Comments
 (0)