Skip to content

Commit ffa36de

Browse files
committed
add tooltip body base styles
1 parent c32b1ac commit ffa36de

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/@chakra-ui/components/Popover.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ const baseStyle = definePartsStyle(
3535
maxWidth: "xs", // 20rem
3636
w: "auto",
3737
},
38+
body: {
39+
color: "body.base",
40+
fontWeight: "normal",
41+
textTransform: "none",
42+
},
3843
header: {
3944
border: "none",
4045
},

src/components/Tooltip/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ const Tooltip: React.FC<IProps> = ({ content, children, ...rest }) => {
2525
<PopoverTrigger>{children}</PopoverTrigger>
2626
<PopoverContent>
2727
<PopoverArrow />
28-
<PopoverBody color="body.base" fontWeight="normal" textTransform="none">
29-
{content}
30-
</PopoverBody>
28+
<PopoverBody>{content}</PopoverBody>
3129
</PopoverContent>
3230
</Popover>
3331
)

0 commit comments

Comments
 (0)