Skip to content

Commit 212b96a

Browse files
committed
use shadow
1 parent fd95a74 commit 212b96a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Tooltip.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode, useState } from "react"
2-
import { Box } from "@chakra-ui/react"
2+
import { Box, useColorModeValue } from "@chakra-ui/react"
33
import * as utils from "../utils/isMobile"
44

55
export interface IProps {
@@ -11,6 +11,7 @@ export interface IProps {
1111
const Tooltip: React.FC<IProps> = ({ content, children }) => {
1212
const [isVisible, setIsVisible] = useState<boolean>(false)
1313
const isMobile = utils.isMobile()
14+
const shadow = useColorModeValue("tableBox.light", "tableBox.dark")
1415

1516
return (
1617
<>
@@ -45,7 +46,7 @@ const Tooltip: React.FC<IProps> = ({ content, children }) => {
4546
w={{ base: "140px", md: "200px" }}
4647
color="text"
4748
bg="background"
48-
boxShadow="tableBoxShadow"
49+
boxShadow={shadow}
4950
position="absolute"
5051
zIndex="docked"
5152
py={4}

0 commit comments

Comments
 (0)