Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[chore] pass through className prop to TippyTooltip (#2272)

Igor D32356b4659dc
diff --git a/src/components/src/common/tippy-tooltip.tsx b/src/components/src/common/tippy-tooltip.tsx
index cf819b92e..fbadb8347 100644
--- a/src/components/src/common/tippy-tooltip.tsx
+++ b/src/components/src/common/tippy-tooltip.tsx
@@ -103,6 +103,7 @@ const TippyTooltip = ({
duration = 200,
arrow = true,
isLightTheme = false,
+ className,
...rest
}: TippyProps & {isLightTheme?: boolean}) => {
const [opacity, setOpacity] = useState(0);
@@ -139,6 +140,7 @@ const TippyTooltip = ({
render={attrs => (
<TippyTooltipContent
{...attrs}
+ className={className}
style={{opacity, transition: `opacity ${duration}ms`}}
arrow={arrow}
isLightTheme={isLightTheme}