From 40af264562b193f35ffd14aff72629a89e7facb4 Mon Sep 17 00:00:00 2001 From: Cyril Date: Wed, 7 Jan 2026 12:44:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20remove=20unexpected=20?= =?UTF-8?q?F2=20tooltip=20when=20clicking=20video=20screen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes accidental tooltip trigger unrelated to visio screen interaction --- .../src/features/rooms/livekit/components/ParticipantTile.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx b/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx index ea00dd77..d2effed4 100644 --- a/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx +++ b/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx @@ -117,7 +117,9 @@ export const ParticipantTile: ( 'aria-label': t('containerLabel', { name: participantName }), onFocus: (event: React.FocusEvent) => { elementProps.onFocus?.(event) - setHasKeyboardFocus(true) + const target = event.target as HTMLElement | null + const isFocusVisible = !!target?.matches?.(':focus-visible') + setHasKeyboardFocus(isFocusVisible) }, onBlur: (event: React.FocusEvent) => { elementProps.onBlur?.(event)