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

update the position of the tooltip and set it near the label text #12779

Merged
merged 6 commits into from
Jun 25, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions src/components/FindWallet/WalletTable/WalletMoreInfoCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const WalletMoreInfoCategory = ({
listStyleType="none"
display="flex"
mb={2}
alignItems="center"
wackerow marked this conversation as resolved.
Show resolved Hide resolved
width={{ base: "auto", xl: "full" }}
sx={{
p: {
Expand All @@ -88,19 +89,19 @@ export const WalletMoreInfoCategory = ({

<Text px={1} lineHeight={1}>
{feature.label}
<Tooltip
content={
<Text color="body.base !important">
{t(walletFilterData[feature.filterKey].description)}
</Text>
}
>
<Box as="span" whiteSpace="nowrap">
&nbsp;
<Icon as={MdInfoOutline} color={featureColor} />
</Box>
</Tooltip>
</Text>

<Tooltip
content={
<Text color="body.base !important">
{t(walletFilterData[feature.filterKey].description)}
</Text>
}
>
<Box as="span">
<Icon as={MdInfoOutline} color={featureColor} />
</Box>
</Tooltip>
</ListItem>
)
})}
Expand Down
Loading