From c27447e2a0b2bb4fa11b7f1a6c98d5a7299dbbaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20Mendon=C3=A7a?= Date: Tue, 12 May 2026 11:30:46 -0300 Subject: [PATCH 1/2] [Improvement] Add exit animation, remove delay, lazy-mount Tooltip content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aligns the Tooltip with shadcn/ui's defaults and behavior: - Switch from `data-show="true"` (binary) to `data-state="open"|"closed"`, enabling clean enter/exit animations driven by paired `data-[state=open]:*` / `data-[state=closed]:*` Tailwind classes. - Add `data-[state=closed]:fill-mode-forwards` so the exit animation persists at its final keyframe (opacity 0) — without it, `tw-animate-css` defaults to `fill-mode: none` and the content snaps back to opacity 1 after the animation completes. - Remove the 500ms delay — shadcn overrides Radix's 700ms default with `delayDuration: 0`, so the tooltip now opens instantly on hover/focus. - Lazy-mount the content via `