Skip to content

Commit a39bb82

Browse files
authored
fix: Fixes Super search highlights styling (#3009)
1 parent f4a9481 commit a39bb82

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme

packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/base.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
}
4343

4444
::highlight(search-results) {
45-
background-color: var(--sn-stylekit-info-color);
4645
background-color: color-mix(in srgb, var(--sn-stylekit-info-color), transparent 60%);
47-
color: var(--text-norm);
4846
}
4947

5048
// has to be defined separately, otherwise browsers which don't support ::highlight syntax
@@ -57,6 +55,6 @@
5755
}
5856

5957
::highlight(active-search-result) {
60-
background-color: var(--sn-stylekit-info-color);
61-
color: var(--text-norm);
58+
background-color: color-mix(in srgb, var(--sn-stylekit-info-color), transparent 30%);
59+
color: var(--sn-stylekit-info-contrast-color);
6260
}

0 commit comments

Comments
 (0)