Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pratik-050
Copy link

Notes for Reviewers
Changed CustomTooltip font using SistentThemeProvider

This PR fixes #

Screenshot from 2024-12-05 18-54-43

Screenshot from 2024-12-05 18-54-35

Signed commits

  • Yes, I signed my commits.

arrow: {
sx: {
color: bgColor
<SistentThemeProvider>
Copy link
Member

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.

Copy link
Author

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,
Copy link
Member

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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why specifying here then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants