Skip to content

Commit

Permalink
[chore] pass through className prop to TippyTooltip (#2272)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Jun 21, 2023
1 parent 52fb684 commit 32356b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/src/common/tippy-tooltip.tsx
Expand Up @@ -103,6 +103,7 @@ const TippyTooltip = ({
duration = 200,
arrow = true,
isLightTheme = false,
className,
...rest
}: TippyProps & {isLightTheme?: boolean}) => {
const [opacity, setOpacity] = useState(0);
Expand Down Expand Up @@ -139,6 +140,7 @@ const TippyTooltip = ({
render={attrs => (
<TippyTooltipContent
{...attrs}
className={className}
style={{opacity, transition: `opacity ${duration}ms`}}
arrow={arrow}
isLightTheme={isLightTheme}
Expand Down

0 comments on commit 32356b4

Please sign in to comment.