-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style(Tooltip): changed CustomTooltip font #839
base: master
Are you sure you want to change the base?
style(Tooltip): changed CustomTooltip font #839
Conversation
Signed-off-by: Pratik Chandra Pal <[email protected]>
arrow: { | ||
sx: { | ||
color: bgColor | ||
<SistentThemeProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't required here to wrap this provider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't wrap this then the theme was not being applied properly and we can't access the correct tokens.
@@ -13,6 +13,12 @@ type CustomTooltipProps = { | |||
bgColor?: string; | |||
} & Omit<TooltipProps, 'title' | 'onClick'>; | |||
|
|||
const StyledFontWrapper = styled(Typography)(({ theme }) => ({ | |||
...theme.typography.textH2Medium, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this variant already has the fontsize in it.
@@ -13,6 +13,12 @@ type CustomTooltipProps = { | |||
bgColor?: string; | |||
} & Omit<TooltipProps, 'title' | 'onClick'>; | |||
|
|||
const StyledFontWrapper = styled(Typography)(({ theme }) => ({ | |||
...theme.typography.textH2Medium, | |||
fontSize: '1rem', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why specifying here then?
Notes for Reviewers
Changed CustomTooltip font using SistentThemeProvider
This PR fixes #
Signed commits