TypeScript
fix(web): clicking the device screen no longer draws a focus ring (#25882)
Theo Browne63bc022f646e
diff --git a/apps/web/src/components/device/DeviceStreamView.tsx b/apps/web/src/components/device/DeviceStreamView.tsxindex 222423bf2c8..e237a4690b7 100644--- a/apps/web/src/components/device/DeviceStreamView.tsx+++ b/apps/web/src/components/device/DeviceStreamView.tsx@@ -299,8 +299,8 @@ export function DeviceStreamView(props: {ref={hostRef}className={cn("relative flex min-h-0 min-w-0 flex-1 items-center justify-center overflow-hidden outline-none",- // Overlay the stream; focus (including pointer-driven focus) marks keyboard capture.- "after:pointer-events-none after:absolute after:inset-0 after:z-10 focus:after:ring-2 focus:after:ring-inset focus:after:ring-ring",+ // Overlay so the ring paints above the stream canvas.+ "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",controlsInset && "pr-14",)}tabIndex={0}