Merge pull request #8312 from penpot/elenatorro-13256-sync-text-selection

🔧 Hide text color from selected text
This commit is contained in:
Alejandro Alonso
2026-02-11 11:02:35 +01:00
committed by GitHub

View File

@@ -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;