mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
fix: Specifically hide tooltip, instead of using a very specific selector to show
This commit is contained in:
@@ -57,7 +57,7 @@ onMounted(() => {
|
||||
:key="index"
|
||||
:href="currentBannerSet[index].url"
|
||||
target="_blank"
|
||||
class="unstyled flex justify-center items-center gap-4 text-white tracking-wide plausible-event-name=bannerClick"
|
||||
class="unstyled flex justify-center items-center gap-4 text-white no-tooltip tracking-wide plausible-event-name=bannerClick"
|
||||
>
|
||||
<span class="font-semibold">{{ currentBannerSet[index].label }}</span>
|
||||
<button class="bg-[#1E1A2E] shrink-0 rounded-lg p-1.5 px-4 font-semibold tracking-wide">
|
||||
|
@@ -34,8 +34,10 @@ const hideTooltip = () => {
|
||||
const handleMouseOver = (e: MouseEvent) => {
|
||||
const target = e.target as HTMLElement;
|
||||
if (
|
||||
target.matches('a[href*="try_playground"]') ||
|
||||
target.matches('button[onclick*="try_playground"]')
|
||||
(target.matches('a[href*="mermaidchart.com"]') ||
|
||||
target.matches('button[onclick*="mermaidchart.com"]')) &&
|
||||
!target.matches('.no-tooltip') &&
|
||||
!target.matches('.VPSocialLink')
|
||||
) {
|
||||
showTooltip(target);
|
||||
}
|
||||
|
Reference in New Issue
Block a user