Repository navigation
site(pricing): keep the ring line out of the "Most popular" marker - #8746
Open
prisma-gremlin[bot] wants to merge 1 commit into
Open
prisma-gremlin[bot] wants to merge 1 commit into
prisma-gremlin[bot] wants to merge 1 commit into
Conversation
#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>
Contributor
Author
|
Gremlin opened this pull request from a Slack conversation.
|
Contributor
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
::beforepseudo-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
sitetypes:checkpasses (note:@prisma-docs/uitypes:checkfails on cleanmainas well — pre-existing, unrelated).oxlintandoxfmtclean on the touched file./pricingat ≥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