Skip to content

site(pricing): keep the ring line out of the "Most popular" marker - #8746

Open
prisma-gremlin[bot] wants to merge 1 commit into
mainfrom
fix/pricing-popular-marker-ring
Open

prisma-gremlin[bot] wants to merge 1 commit into
mainfrom
fix/pricing-popular-marker-ring

Conversation

@prisma-gremlin

@prisma-gremlin prisma-gremlin Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On /pricing, the always-lit spectrum ring on the popular plan card was drawing a 1px gradient line straight through the "Most popular" badge that straddles the card's top edge.

The perf refactor in #8480 replaced the card's CSS ring (a ::before pseudo-element, which painted under the badge) with <SpectrumRing />, which is deliberately placed last among the card's children so it paints over decorative layers — and that now included the badge. The marker's opaque white background masks the card border, but not a ring painted after it.

The fix gives the marker z-10, the same treatment the straddling badges on comparison-cards already get, so it masks the ring line again. No visual change other than removing the line from the badge; the ring still paints over the card's other (non-positioned) decorative layers.

Test plan

  • site types:check passes (note: @prisma-docs/ui types:check fails on clean main as well — pre-existing, unrelated).
  • oxlint and oxfmt clean on the touched file.
  • On /pricing at ≥1440px, the top spectrum ring line on the Starter plan card no longer crosses the "Most popular" marker; the calculator's "Recommended" marker and the comparison column are unchanged (their markers are inline, not straddling).

Created by Gremlin

Summary by CodeRabbit

  • Style
    • Improved the visibility of the “Most popular” label when it overlaps other content and adjusted its line wrapping.

#8480 swapped the plan card's CSS ring for <SpectrumRing />, which is
placed last among the card's children so it paints over decorative
layers — including the marker straddling the card's top edge, so the
1px spectrum line crossed straight through the badge. Give the marker
z-10, the same treatment as the straddling badges on comparison-cards,
so it masks the ring again.

Co-Authored-By: Gremlin <gremlin[bot]@users.noreply.github.com>
@prisma-gremlin

prisma-gremlin Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Gremlin opened this pull request from a Slack conversation.

@vercel
vercel Bot temporarily deployed to Preview – handbook November 5, 2026 14:41 Inactive
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
blog Ready Ready Preview Nov 5, 2026 2:43pm UTC
docs Ready Ready Preview Nov 5, 2026 2:43pm UTC
eclipse Ready Ready Preview Nov 5, 2026 2:43pm UTC
site Ready Ready Preview Nov 5, 2026 2:43pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
handbook Skipped Skipped Nov 5, 2026 2:43pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The popular-plan marker gains the z-10 utility. Its label is reformatted onto its own line without changing its text or positioning classes.

Changes

Pricing plan marker

Layer / File(s) Summary
Popular-plan marker styling
apps/site/src/components/sections/pricing-plans.tsx
The marker gains z-10. Its label is reformatted onto its own line; its text and positioning classes remain unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: vanrensbird

Merge Risk: Minimal · up to 9139b

The pricing marker stacking fix is ready to merge.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: preventing the spectrum ring from crossing the “Most popular” marker on the pricing page.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 51904f72-9640-41ab-a660-a8fae718726a
Commits

Reviewing files that changed from the base of the PR and between 1ce9c9c and 9139b0d.

Files selected for processing: 1

  • apps/site/src/components/sections/pricing-plans.tsx

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

This branch was successfully deployed

5 active and 1 inactive deployments
Preview – docs — 9139b0d8 Deployed Nov 5, 2026 by vercel[bot]
Preview – site — 9139b0d8 Deployed Nov 5, 2026 by vercel[bot]
Preview – blog — 9139b0d8 Deployed Nov 5, 2026 by vercel[bot]
Preview – eclipse — 9139b0d8 Deployed Nov 5, 2026 by vercel[bot]
Preview – handbook — 9139b0d8 Deployed Nov 5, 2026 by vercel[bot]
prisma-preview/fix/pricing-popular-marker-ring — 9139b0d8 Deployed Nov 5, 2026 by prisma-gremlin[bot] via deploy #860
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