From ebdcda135e31693c5283f8ac409019bd69e07f8e Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Thu, 24 Sep 2026 20:38:59 -0700 Subject: [PATCH] fix(web): selected text stays visible on a revealed file line (#13548) Co-authored-by: Claude Opus 5.5 (1M context) --- apps/web/src/components/files/fileSurfaceChrome.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/files/fileSurfaceChrome.tsx b/apps/web/src/components/files/fileSurfaceChrome.tsx index d5263f73377c82a5712487fec62ec985bd874a9c..184c5626e90f273a237b23c490b70e8c4c76491b 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%, -- 2.54.0