From 30ac0e4f48e285ffeaf9a80b9c9982bbf07f022f Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Tue, 4 Feb 2025 19:42:57 -0500 Subject: [PATCH] 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. --- src/editor/highlightextension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/highlightextension.ts b/src/editor/highlightextension.ts index 06840a194..90df5deb5 100644 --- a/src/editor/highlightextension.ts +++ b/src/editor/highlightextension.ts @@ -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' }, })