From 069f932f09dd2873def502eed037e73f5e87ec77 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 30 Jun 2023 11:46:47 +0100 Subject: [PATCH] add div to capture tooltip. mute pointerevents --- .../src/lib/Button/StaticAnalyserButton.tsx | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx b/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx index 136846bb96..b0f967e10d 100644 --- a/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx +++ b/libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx @@ -1,5 +1,6 @@ import { CustomTooltip } from '@remix-ui/helper' import React from 'react' //eslint-disable-line +import '../ssa.css' interface StaticAnalyserButtonProps { onClick: (event) => void @@ -21,7 +22,12 @@ const StaticAnalyserButton = ({ classList.length === 0 && disabled ? `${defaultStyle} disabled` : classList.length > 0 ? `${classList}` : defaultStyle const buttonWithoutTooltip = () => ( - + - ) + ) return ( title && title.length > 0 ? buttonWithTooltip() : buttonWithoutTooltip()