From d903f75913aa72c7e1647a73f911dc49e7516028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gangloff?= Date: Mon, 21 Oct 2024 14:14:27 +0000 Subject: [PATCH] style: add z-index and remove pointer events to avoid bug when multiple tooltips are overlapped --- composer.json | 2 +- src/view/frontend/tailwind/components/common.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e9d88ea..9e11842 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "blackbird/hyva-tooltip", - "version": "1.0.3", + "version": "1.0.4", "authors": [ { "name": "Blackbird Agency", diff --git a/src/view/frontend/tailwind/components/common.css b/src/view/frontend/tailwind/components/common.css index eac3a2c..16938a8 100644 --- a/src/view/frontend/tailwind/components/common.css +++ b/src/view/frontend/tailwind/components/common.css @@ -1,9 +1,9 @@ @layer components { [blackbird-tooltip] { @apply hidden max-w-[min(100%,19rem)] absolute top-0 left-0 bg-secondary text-secondary py-1 px-2 rounded - opacity-0 transition-opacity; + pointer-events-none opacity-0 transition-opacity z-20; &[show] { - @apply opacity-100; + @apply pointer-events-auto opacity-100; } [arrow] { @apply absolute w-2.5 h-2.5 bg-inherit -z-10 pointer-events-none rotate-45;