Accessibility
What the library guarantees:
- Focus moves into the card on open and goes back to the triggering element when you exit.
- Everything except the card is
inert, meaning untabbable, unclickable, and hidden from screen readers. In interactive mode the spotlighted target is exempt too. No keydown interception, no sentinel nodes. - The step counter is part of the card’s accessible name, so it reads as “Step 2 of 5, Invite your team” in one go and doesn’t arrive as a separate interruption. If focus is already inside the card, step changes route through a polite live region so nothing gets announced twice.
- Escape always exits, from anywhere, even while focus is on the target.
aria-modalis set only in fully blocking mode.- Every animation collapses under
prefers-reduced-motion.