TypeScript
fix(web): selected text stays visible on a revealed file line (#13548)
Theo Browneebdcda135e31
diff --git a/apps/web/src/components/files/fileSurfaceChrome.tsx b/apps/web/src/components/files/fileSurfaceChrome.tsxindex d5263f73377..184c5626e90 100644--- a/apps/web/src/components/files/fileSurfaceChrome.tsx+++ b/apps/web/src/components/files/fileSurfaceChrome.tsx@@ -29,8 +29,11 @@ export const FILE_LINK_REVEAL_UNSAFE_CSS = `color: var(--code-foreground, var(--foreground)) !important;}+ /* Tint through --diffs-line-bg, not background-color. The editor paints row+ tints on a layer below its text selection; a background on the row itself+ covers the selection and makes selected text on this line invisible. */[${FILE_LINK_REVEAL_ATTRIBUTE}][data-line] {- background-color: light-dark(+ --diffs-line-bg: light-dark(color-mix(in lab,var(--diffs-computed-diff-line-bg) 82%,