diff --git a/themes/theme/src/index.tsx b/themes/theme/src/index.tsx index 216898f6e..eaeaec00d 100644 --- a/themes/theme/src/index.tsx +++ b/themes/theme/src/index.tsx @@ -95,9 +95,9 @@ export const createTheme = ({ theme, settings = {}, styles = [] }: CreateThemeOp if (settings.selection) { themeOptions[ - '&.cm-focused .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection' + '&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection' ] = { - backgroundColor: settings.selection, + backgroundColor: settings.selection + ' !important', }; } if (settings.selectionMatch) {