Skip to content

Commit 5ed28d3

Browse files
t3dotggclaude
andcommitted
fix(web): clicking the device screen no longer draws a focus ring
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e109dc8 commit 5ed28d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/device/DeviceStreamView.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ export function DeviceStreamView(props: {
299299
ref={hostRef}
300300
className={cn(
301301
"relative flex min-h-0 min-w-0 flex-1 items-center justify-center overflow-hidden outline-none",
302-
// Overlay the stream; focus (including pointer-driven focus) marks keyboard capture.
303-
"after:pointer-events-none after:absolute after:inset-0 after:z-10 focus:after:ring-2 focus:after:ring-inset focus:after:ring-ring",
302+
// Overlay so the ring paints above the stream canvas.
303+
"after:pointer-events-none after:absolute after:inset-0 after:z-10 focus-visible:after:ring-2 focus-visible:after:ring-inset focus-visible:after:ring-ring",
304304
controlsInset && "pr-14",
305305
)}
306306
tabIndex={0}

0 commit comments

Comments
 (0)