Skip to content

Commit

Permalink
Fix codemirror theme selection background color
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Jul 18, 2023
1 parent c68fa8e commit 0497774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/codemirror/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const jupyterEditorTheme = EditorView.theme({
backgroundColor: 'var(--jp-editor-selected-background)'
},

'&.cm-focused .cm-selectionBackground': {
'&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground': {
backgroundColor: 'var(--jp-editor-selected-focused-background)'
},

Expand Down

0 comments on commit 0497774

Please sign in to comment.