From c2106f2b190b13beee75ebe98879753bbc257ac9 Mon Sep 17 00:00:00 2001 From: whiteformed Date: Wed, 18 Dec 2024 12:10:55 +0300 Subject: [PATCH] feat(EditorView): remove text highlight from selected nodes --- src/extensions/behavior/Selection/selection.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/extensions/behavior/Selection/selection.scss b/src/extensions/behavior/Selection/selection.scss index 2f0f000c..b98abcd4 100644 --- a/src/extensions/behavior/Selection/selection.scss +++ b/src/extensions/behavior/Selection/selection.scss @@ -62,9 +62,13 @@ $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 */