Skip to content

Commit 71e163d

Browse files
Fix issue where selected text was black in dark mode
1 parent 0421fb5 commit 71e163d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highlight-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ function Highlighter(options = hhDefaultOptions) {
933933
`);
934934
} else {
935935
selectionStylesheet.replaceSync(`
936-
${options.containerSelector} ::selection { background-color: Highlight; color: HighlightText; }
936+
${options.containerSelector} ::selection { background-color: Highlight; color: inherit; }
937937
${options.containerSelector} rt::selection, ${options.containerSelector} img::selection { background-color: transparent; }
938938
`);
939939
}

0 commit comments

Comments
 (0)