close
Skip to content

fix: pricing page customer badge tooltip styling#2874

Draft
felixkrrr wants to merge 3 commits intomainfrom
cursor/fix-pricing-tooltip-styling-f5d5
Draft

fix: pricing page customer badge tooltip styling#2874
felixkrrr wants to merge 3 commits intomainfrom
cursor/fix-pricing-tooltip-styling-f5d5

Conversation

@felixkrrr
Copy link
Copy Markdown
Contributor

@felixkrrr felixkrrr commented Apr 27, 2026

Fixes LFE-9488

Problem

The customer logo tooltips on the pricing page were broken — they rendered with a black background, truncated text, and the "Read case study" link was not clickable.

This happened because the TrustedBy component used the shared TooltipContent which has a compact label style:

  • h-[15px] fixed height → text truncation
  • overflow-hidden → content clipped
  • bg-primary → dark/black background
  • font-mono text-[10px] → inappropriate font styling
  • disableHoverableContent={true} (default) → impossible to click "Read case study" link

Fix

Overrides TooltipContent className in TrustedBy.tsx to get card-like appearance matching other hover menus:

  • h-auto instead of h-[15px] — no truncation
  • bg-surface-bg with border-line-structure and shadow-md — proper card look (not black)
  • font-sans text-sm — readable text (not tiny monospace)
  • rounded-md — consistent card styling

Also sets disableHoverableContent={false} on TooltipProvider so users can hover over the tooltip content to click the "Read case study" link.

Only one file changed: components/home/components/TrustedBy.tsx

Linear Issue: LFE-9488

Open in Web Open in Cursor 

The customer logo tooltips on the pricing page were using the shared
Tooltip component which has a compact label style (15px height,
overflow-hidden, dark bg-primary background, 10px mono font). This
caused the customer name and case study link to be truncated and
rendered with a black background.

Switched to HoverCard which provides proper card-like styling
(surface background, border, shadow, adequate sizing) consistent with
other hover/dropdown cards in the codebase. HoverCard also supports
hoverable content, making the 'Read case study' link clickable.

Co-authored-by: felixkrrr <felixkrrr@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
langfuse-docs Ready Ready Preview, Comment Apr 27, 2026 3:59pm

Request Review

cursoragent and others added 2 commits April 27, 2026 15:53
Same pattern used for Tooltip and other Radix primitives — cast
HoverCard Root to make children optional so JSX usage with openDelay/
closeDelay props passes strict type checking.

Co-authored-by: felixkrrr <felixkrrr@users.noreply.github.com>
Reverts the HoverCard approach which had React 19 type compatibility
issues. Instead, keeps Tooltip (which already has proper type casts)
but overrides TooltipContent className to get card-like appearance:
- h-auto instead of h-[15px] (no truncation)
- bg-surface-bg with border and shadow (not black bg-primary)
- font-sans text-sm (not font-mono text-[10px])
- rounded-md border-line-structure for consistent card look

Also sets disableHoverableContent={false} on TooltipProvider so users
can hover over the tooltip content to click the case study link.

Co-authored-by: felixkrrr <felixkrrr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants