From 7c5585ab0c8e08399877c9f59f3c7ab56054fad0 Mon Sep 17 00:00:00 2001 From: Ethan Van Der Heijden <84098504+Ethan-Vanderheijden@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:55:27 -0700 Subject: [PATCH] fix: Fix double highlighting selection when using drawSelection. (#573) --- themes/theme/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/theme/src/index.tsx b/themes/theme/src/index.tsx index 2f8166dd1..e551d41f8 100644 --- a/themes/theme/src/index.tsx +++ b/themes/theme/src/index.tsx @@ -95,7 +95,7 @@ export const createTheme = ({ theme, settings = {}, styles = [] }: CreateThemeOp if (settings.selection) { themeOptions[ - '&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection' + '&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection' ] = { background: settings.selection + ' !important', };