We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6abad9 + e75a40b commit 2c7229cCopy full SHA for 2c7229c
1 file changed
src/custom/CustomTooltip/customTooltip.tsx
@@ -1,6 +1,6 @@
1
import { Tooltip, type TooltipProps } from '@mui/material';
2
import React from 'react';
3
-import { CHARCOAL, WHITE } from '../../theme';
+import { WHITE } from '../../theme';
4
import { RenderMarkdownTooltip } from '../Markdown';
5
6
type CustomTooltipProps = {
@@ -21,7 +21,7 @@ function CustomTooltip({
21
fontSize,
22
fontWeight = 400,
23
variant = 'standard',
24
- bgColor = CHARCOAL,
+ bgColor = '#333333',
25
...props
26
}: CustomTooltipProps): JSX.Element {
27
return (
@@ -42,6 +42,11 @@ function CustomTooltip({
42
zIndex: 9999999999,
43
opacity: '1'
44
}
45
+ },
46
+ arrow: {
47
+ sx: {
48
+ color: bgColor
49
+ }
50
51
}}
52
title={typeof title === 'string' ? <RenderMarkdownTooltip content={title} /> : title}
0 commit comments