Skip to content

Commit 4af1413

Browse files
[Backport 5.3] Blob view: bandaid selection coloring (sourcegraph#60354)
Blob view: bandaid selection coloring (sourcegraph#60344) bandaid selection coloring in blob view (cherry picked from commit 8d5e4a5) Co-authored-by: Camden Cheek <camden@ccheek.com>
1 parent 105539d commit 4af1413

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

client/branded/src/search-ui/input/BaseCodeMirrorQueryInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ const staticExtensions: Extension = [
5454
padding: 0,
5555
},
5656
'&.cm-focused .cm-selectionLayer .cm-selectionBackground': {
57-
backgroundColor: 'var(--code-selection-bg-2)',
57+
backgroundColor: 'var(--code-selection-bg-2) !important',
5858
},
5959
'.cm-selectionLayer .cm-selectionBackground': {
60-
backgroundColor: 'var(--code-selection-bg)',
60+
backgroundColor: 'var(--code-selection-bg) !important',
6161
},
6262
}),
6363
]

client/web-sveltekit/src/lib/search/BaseQueryInput.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
padding: 0,
3737
},
3838
'&.cm-focused .cm-selectionLayer .cm-selectionBackground': {
39-
backgroundColor: 'var(--code-selection-bg-2)',
39+
backgroundColor: 'var(--code-selection-bg-2) !important',
4040
},
4141
'.cm-selectionLayer .cm-selectionBackground': {
42-
backgroundColor: 'var(--code-selection-bg)',
42+
backgroundColor: 'var(--code-selection-bg) !important',
4343
},
4444
}),
4545
defaultTheme,

client/web/src/repo/blob/codemirror/codeintel/keybindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const theme = EditorView.theme({
135135
},
136136
},
137137
'.cm-selectionLayer .cm-selectionBackground': {
138-
background: 'var(--code-selection-bg-2)',
138+
background: 'var(--code-selection-bg-2) !important',
139139
},
140140
})
141141

0 commit comments

Comments
 (0)