Skip to content

Commit dd8d045

Browse files
authored
Merge pull request #12795 from TylerAPfledderer/fix/stat-tooltip-popover-position
fix(Stat): wrap `Tooltip` child in button
2 parents 6ecb22c + aa70753 commit dd8d045

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Stat/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useState } from "react"
22
import type { IconType } from "react-icons/lib"
33
import { MdInfoOutline, MdWarning } from "react-icons/md"
4-
import { Flex, HStack, Icon, Text } from "@chakra-ui/react"
4+
import { Box, chakra, Flex, HStack, Icon, Text } from "@chakra-ui/react"
55

66
import { NULL_VALUE } from "@/lib/constants"
77

@@ -44,7 +44,9 @@ const Stat = ({ tooltipProps, value, label, isError }: StatProps) => {
4444
<Text as="span">{label}</Text>
4545
{!!tooltipProps && (
4646
<Tooltip {...tooltipProps}>
47-
<Icon as={content.tooltipIcon} />
47+
<chakra.button display='flex' color="inherit">
48+
<Icon as={content.tooltipIcon} />
49+
</chakra.button>
4850
</Tooltip>
4951
)}
5052
</HStack>

0 commit comments

Comments
 (0)