- Shipped
- September 23, 2026 at 2:06 AM UTC
- Author
- Kamo
- Commit
- bd6f63e
The card is portalled to the end of <body>, so in document order it follows the whole page: a member who opened it from a name with Enter or focus and pressed Tab went to whatever came after the name, the card closed, and none of its actions could be reached without a mouse. The name and the card now hand focus to each other (cardFocus.ts): Tab from an open name — or from a link inside one — enters the card; Shift+Tab from its first control returns to the name; Tab past its last control closes it and carries on to what follows the name, as if the card had been written right after it; focus that leaves for anything but the name closes it. Hidden-from-AT elements are skipped, which also keeps the hand-off inside an open MUI modal. Inside MUI dialogs the focus trap was never the problem it was thought to be: the card already keeps focusin from reaching the trap's document listener, and MUI admits a portal from its own React tree anyway. A test now pins that keyboard focus stays on the card's buttons inside a Dialog.
