We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 929c5f4 + fc17ee2 commit 08c873bCopy full SHA for 08c873b
src/custom/CustomTooltip/customTooltip.tsx
@@ -10,6 +10,7 @@ type CustomTooltipProps = {
10
fontSize?: string;
11
fontWeight?: number;
12
variant?: 'standard' | 'small';
13
+ bgColor?: string;
14
} & Omit<TooltipProps, 'title' | 'onClick'>;
15
16
function CustomTooltip({
@@ -20,14 +21,15 @@ function CustomTooltip({
20
21
fontSize,
22
fontWeight = 400,
23
variant = 'small',
24
+ bgColor = CHARCOAL,
25
...props
26
}: CustomTooltipProps): JSX.Element {
27
return (
28
<Tooltip
29
componentsProps={{
30
tooltip: {
31
sx: {
- background: CHARCOAL,
32
+ background: bgColor,
33
color: WHITE,
34
fontSize: fontSize || (variant === 'standard' ? '1rem' : '0.75rem'),
35
fontWeight: { fontWeight },
0 commit comments