From 0f513ac57f3147c63742f54ff859a28ceacf337b Mon Sep 17 00:00:00 2001 From: whiteformed Date: Wed, 18 Dec 2024 12:11:49 +0300 Subject: [PATCH] feat(EditorView): remove text highlight from selected nodes --- src/extensions/behavior/Selection/selection.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/extensions/behavior/Selection/selection.scss b/src/extensions/behavior/Selection/selection.scss index 2f0f000c..36a2f64b 100644 --- a/src/extensions/behavior/Selection/selection.scss +++ b/src/extensions/behavior/Selection/selection.scss @@ -62,9 +62,14 @@ $offset-elements: h1, h2, h3, h4, h5, h6, 'p:not(:has(img))', 'span:not(+ img)', ); } - // &::selection { - // color: var(--g-color-text-primary); - // } + &#{$active-node-selector} { + &, + * { + &::selection { + color: inherit; + } + } + } } /* default selection properties */