Skip to content

Commit

Permalink
style(theme): fix selection style issue. (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 28, 2023
1 parent 660d308 commit 85c8ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/theme/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 85c8ee3

Please sign in to comment.