From 2a5a0e295048703bbd63296f0413e484af3960df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Fri, 10 Jul 2026 16:42:43 +0200 Subject: [PATCH] fix(room-modal): center identity hero + drop close-button autofocus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Room Info modal placed a 96px avatar beside a lone muted JID, and the focus trap landed initial focus on the header close button — drawing the focus ring and popping its 'Close' tooltip unprompted on open. - ModalShell: mark the X close button tabIndex={-1}. Escape closes the modal, so the X is a pointer-only affordance; keeping it out of the tab order (and the trap's initial target) means opening any titled modal no longer autofocuses it or pops its tooltip. - RoomInfoModal: rebalance the identity block into a centered hero (avatar over JID); the room name already reads as the modal title. --- apps/fluux/src/components/ModalShell.tsx | 5 +++++ apps/fluux/src/components/RoomInfoModal.tsx | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/fluux/src/components/ModalShell.tsx b/apps/fluux/src/components/ModalShell.tsx index 551194433..fd7f78e82 100644 --- a/apps/fluux/src/components/ModalShell.tsx +++ b/apps/fluux/src/components/ModalShell.tsx @@ -39,6 +39,11 @@ export function ModalShell({