Skip to content

Commit c2560da

Browse files
committed
style(webapp): make hobby and pro credits tooltip hoverable
1 parent 6fb35e2 commit c2560da

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

apps/webapp/app/components/DefinitionTooltip.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ export function DefinitionTip({
66
content,
77
children,
88
title,
9+
disableHoverableContent = true,
910
}: {
1011
content: React.ReactNode;
1112
children: React.ReactNode;
1213
title: React.ReactNode;
14+
disableHoverableContent?: boolean;
1315
}) {
1416
return (
1517
<TooltipProvider>
16-
<Tooltip disableHoverableContent>
18+
<Tooltip disableHoverableContent={disableHoverableContent}>
1719
<TooltipTrigger className="text-left">
1820
<span className="cursor-default underline decoration-charcoal-500 decoration-dashed underline-offset-4 transition hover:decoration-charcoal-400">
1921
{children}

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -662,16 +662,17 @@ export function TierHobby({
662662
<ul className="flex flex-col gap-2.5">
663663
<FeatureItem checked>
664664
<DefinitionTip
665+
disableHoverableContent={false}
665666
title="Credits included"
666667
content={
667-
<>
668-
This plan includes ${plan.limits.includedUsage / 100} of compute each month. After that's used, tasks
669-
keep running and you're billed per our{" "}
670-
<TextLink to="https://trigger.dev/pricing#computePricing">
668+
<Paragraph variant="small/dimmed" spacing>
669+
This plan includes ${plan.limits.includedUsage / 100} of compute each month. After
670+
that's used, tasks keep running and you're billed per our{" "}
671+
<TextLink target="_blank" to="https://trigger.dev/pricing#computePricing">
671672
compute usage rates
672673
</TextLink>
673674
.
674-
</>
675+
</Paragraph>
675676
}
676677
>
677678
${plan.limits.includedUsage / 100} / month credits included
@@ -807,16 +808,17 @@ export function TierPro({
807808
<ul className="flex flex-col gap-2.5">
808809
<FeatureItem checked>
809810
<DefinitionTip
811+
disableHoverableContent={false}
810812
title="Credits included"
811813
content={
812-
<>
813-
This plan includes ${plan.limits.includedUsage / 100} of compute each month. After that's used, tasks
814-
keep running and you're billed per our{" "}
815-
<TextLink to="https://trigger.dev/pricing#computePricing">
814+
<Paragraph variant="small/dimmed" spacing>
815+
This plan includes ${plan.limits.includedUsage / 100} of compute each month. After
816+
that's used, tasks keep running and you're billed per our{" "}
817+
<TextLink target="_blank" to="https://trigger.dev/pricing#computePricing">
816818
compute usage rates
817819
</TextLink>
818820
.
819-
</>
821+
</Paragraph>
820822
}
821823
>
822824
${plan.limits.includedUsage / 100} / month credits included

0 commit comments

Comments
 (0)