From 2a5849afcb966a3fa7845c4d30559c59289ab1bc Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 29 Jul 2026 17:30:59 -0700 Subject: [PATCH] Fix tooltip z index --- src/lib/components/tooltip.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/components/tooltip.css b/src/lib/components/tooltip.css index c87975fe..d148aec6 100644 --- a/src/lib/components/tooltip.css +++ b/src/lib/components/tooltip.css @@ -8,6 +8,12 @@ transition: opacity 0.15s ease; } + /* themes that lift buttons on hover give the host a transform, which makes it + a stacking context and traps the tooltip's z-index inside it */ + &[data-tip]:hover { + @apply z-tooltip; + } + &[data-tip]:hover::before { @apply opacity-100; }