From 187d1118c0ff7d3460f08814e58d815e7ac4e434 Mon Sep 17 00:00:00 2001 From: Elena Torro Date: Tue, 10 Feb 2026 13:15:55 +0100 Subject: [PATCH] :wrench: Hide text color from selected text --- .../ui/workspace/shapes/text/v2_editor.scss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.scss b/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.scss index feada220c0..b34628c932 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.scss +++ b/frontend/src/app/main/ui/workspace/shapes/text/v2_editor.scss @@ -29,6 +29,23 @@ color: transparent; + // Match Skia's text layout precision: prevent browser text-size + // adjustments and ensure consistent kerning across browsers. + text-size-adjust: none; + -webkit-text-size-adjust: none; + font-kerning: normal; + + &::selection, + *::selection { + color: transparent; + -webkit-text-fill-color: transparent; // WebKit/Safari + } + + &::-moz-selection, + *::-moz-selection { + color: transparent; + } + [data-itype="paragraph"] { line-height: inherit; user-select: text;