authorgravatar for me@t3.ggTheo Browne <me@t3.gg> 2026-09-24 20:38:59-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-24 20:38:59-07:00
logebdcda135e31693c5283f8ac409019bd69e07f8e
tree27d76503952444db23866fc1fcdcf530153ad187
parentfc46b8c3dd691ed2e39da28a2407e1b1597f2832
signature Signed by PGP key B5690EEEBB952194

fix(web): selected text stays visible on a revealed file line (#13548)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

1 files changed, 4 insertions(+), 1 deletions(-)

apps/web/src/components/files/fileSurfaceChrome.tsx+4-1
...@@ -29,8 +29,11 @@ export const FILE_LINK_REVEAL_UNSAFE_CSS = `...@@ -29,8 +29,11 @@ export const FILE_LINK_REVEAL_UNSAFE_CSS = `
29 color: var(--code-foreground, var(--foreground)) !important;29 color: var(--code-foreground, var(--foreground)) !important;
30 }30 }
3131
32 /* Tint through --diffs-line-bg, not background-color. The editor paints row
33 tints on a layer below its text selection; a background on the row itself
34 covers the selection and makes selected text on this line invisible. */
32 [${FILE_LINK_REVEAL_ATTRIBUTE}][data-line] {35 [${FILE_LINK_REVEAL_ATTRIBUTE}][data-line] {
33 background-color: light-dark(36 --diffs-line-bg: light-dark(
34 color-mix(37 color-mix(
35 in lab,38 in lab,
36 var(--diffs-computed-diff-line-bg) 82%,39 var(--diffs-computed-diff-line-bg) 82%,