Skip to content

Commit

Permalink
Increase specificity of selection background style
Browse files Browse the repository at this point in the history
FIX: Make sure the selection background styling overrides the base style rules.
  • Loading branch information
marijnh committed Apr 17, 2023
1 parent d4e5ac7 commit 1960ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/one-dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const oneDarkTheme = EditorView.theme({
},

".cm-cursor, .cm-dropCursor": {borderLeftColor: cursor},
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {backgroundColor: selection},
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {backgroundColor: selection},

".cm-panels": {backgroundColor: darkBackground, color: ivory},
".cm-panels.cm-panels-top": {borderBottom: "2px solid black"},
Expand Down

0 comments on commit 1960ab9

Please sign in to comment.