Skip to content

Commit 85c8ee3

Browse files
committedJul 28, 2023
style(theme): fix selection style issue. (#546)
1 parent 660d308 commit 85c8ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎themes/theme/src/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export const createTheme = ({ theme, settings = {}, styles = [] }: CreateThemeOp
9595

9696
if (settings.selection) {
9797
themeOptions[
98-
'&.cm-focused .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
98+
'&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
9999
] = {
100-
backgroundColor: settings.selection,
100+
backgroundColor: settings.selection + ' !important',
101101
};
102102
}
103103
if (settings.selectionMatch) {

0 commit comments

Comments
 (0)
Please sign in to comment.