diff --git a/src/custom/CustomTooltip/customTooltip.tsx b/src/custom/CustomTooltip/customTooltip.tsx index 0568d9ac..daaeb15a 100644 --- a/src/custom/CustomTooltip/customTooltip.tsx +++ b/src/custom/CustomTooltip/customTooltip.tsx @@ -1,6 +1,6 @@ -import { Tooltip, type TooltipProps } from '@mui/material'; +import { Tooltip, Typography, styled, type TooltipProps } from '@mui/material'; import React from 'react'; -import { WHITE } from '../../theme'; +import { SistentThemeProvider, WHITE } from '../../theme'; import { RenderMarkdownTooltip } from '../Markdown'; type CustomTooltipProps = { @@ -13,6 +13,12 @@ type CustomTooltipProps = { bgColor?: string; } & Omit; +const StyledFontWrapper = styled(Typography)(({ theme }) => ({ + ...theme.typography.textH2Medium, + fontSize: '1rem', + lineHeight: '1.5rem' +})); + function CustomTooltip({ title, onClick, @@ -25,39 +31,49 @@ function CustomTooltip({ ...props }: CustomTooltipProps): JSX.Element { return ( - + + + + ) : ( + title + ) } - }} - title={typeof title === 'string' ? : title} - placement={placement} - arrow - onClick={onClick} - {...props} - > - {children} - + placement={placement} + arrow + onClick={onClick} + {...props} + > + {children} + + ); }