Skip to content

💄 Stop text-link forcing the brand color on colored surfaces - #3319

Open
posthog-eu[bot] wants to merge 1 commit into
mainfrom
posthog-self-driving/fixui-stop-text-link-forcing-brand-b9a010
Open

posthog-eu[bot] wants to merge 1 commit into
mainfrom
posthog-self-driving/fixui-stop-text-link-forcing-brand-b9a010

Conversation

@posthog-eu

@posthog-eu posthog-eu Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description

The text-link utility paints every link in the space's own brand color (text-primary). That token is customer-chosen through white-label branding, so on a colored or component-owned surface the link color is one the surface never accounted for and can fail contrast.

Why: a latent accessibility risk. A branded or self-hosted space can pick a brand color that fails contrast against a colored surface, and the next person to reach for text-link inside an Alert inherits the defect.

Changes:

  • Add a text-link-inherit variant that inherits the surface text color (text-current) instead of the brand color. Same focus ring and hover underline as text-link.

  • Move the three call sites on colored or component-owned surfaces onto it:

    Call site Surface
    features/licensing/components/license-limit-warning.tsx bg-muted
    packages/ui/src/rich-text-editor.tsx editor content
    packages/ui/src/markdown-description.tsx description prose
  • Drop Alert's [&_a]:hover:text-foreground. On a colored variant it replaced the alert's own text color (e.g. text-yellow-900) with the global foreground on hover. Links now keep the alert's own color; the always-present underline stays as the affordance.

Neutral surfaces keep text-link and the brand color as before.

Checklist

Please check off all the following items with an "x" in the boxes before requesting a review.

  • I have performed a self-review of my code
  • My code follows the code style of this project
  • I have commented my code, particularly in hard-to-understand areas

Created with PostHog Desktop from this inbox report.

The text-link utility applies the space's brand color (text-primary), which
is customer-chosen through white-label branding. On a colored or component-
owned surface the brand color is unpredictable and can fail contrast.

Add a text-link-inherit variant that inherits the surface text color, and
move the three call sites on colored or component-owned surfaces onto it:
the self-hosted license limit warning, the rich text editor, and the
markdown description.

Also drop Alert's link hover:text-foreground, which replaced the alert's own
colored text with the global foreground on hover.

Generated-By: PostHog Desktop
Task-Id: 264d9cb8-0cd1-4989-bd3b-2e8d6d35d14f
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
app Ready Ready Preview Sep 18, 2026 7:12pm UTC
landing Ready Ready Preview Sep 18, 2026 7:12pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: lukevella/rallly/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: ee6f8d00-3b88-45d1-9986-cb0355111186

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

0 participants