Add a different class for highlights in dark mode (#5244)

That was dumb easy, we should remember how easy this is when we come
back through and make better redesign choices.
This commit is contained in:
Frank Noirot
2025-02-04 19:42:57 -05:00
committed by GitHub
parent 8f90c352fe
commit 30ac0e4f48

View File

@ -45,10 +45,10 @@ export const lineHighlightField = StateField.define({
})
const matchDeco = Decoration.mark({
class: 'bg-yellow-300/70',
class: 'bg-yellow-300/70 dark:bg-blue-800/50',
attributes: { 'data-testid': 'hover-highlight' },
})
const matchDeco2 = Decoration.mark({
class: 'bg-yellow-200/40',
class: 'bg-yellow-200/40 dark:bg-blue-700/50',
attributes: { 'data-testid': 'hover-highlight' },
})