Skip to content

Fix: give the landing page badges the product's capsule corner - #20

Merged
SandObserver merged 1 commit into
mainfrom
fix/badge-capsule-corner
Aug 29, 2026
Merged

SandObserver merged 1 commit into
mainfrom
fix/badge-capsule-corner

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Replace the computed half-height border-radius on .badge and on the hero's scaled .screen-inner .badge with the fixed capsule radius the dashboard's own badge uses.

Testing
npm run build and npm run check both pass. Checked in Chrome against the production build on 4322: the badges are unchanged in shape at both scales. The artifact this addresses is a GPU compositing fault that does not reproduce in headless WebKit, so it needs confirming in Safari.

Checklist

  • npm run build and npm run check both pass.
  • Product UI is shown by running or capturing it, never recreated in CSS.
  • Any new preview or screenshot carries no private hostnames or real data.
  • Visual changes verified in both colour schemes and both docs themes.
  • Links to the app repo still resolve.

Both badge rules computed a radius of exactly half the pill's height, on a
height that is scaled by a fraction. WebKit tears the rounded edge when such a
badge repaints, and the demo counter rewrites it every 3.4 seconds.
@SandObserver SandObserver added the ui/ux UI, UX, and accessibility only fix label Aug 29, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying stackyard-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d43c3d4
Status: ✅  Deploy successful!
Preview URL: https://933d6520.stackyard-docs.pages.dev
Branch Preview URL: https://fix-badge-capsule-corner.stackyard-docs.pages.dev

View logs

@SandObserver
SandObserver merged commit ca01d79 into main Aug 29, 2026
2 checks passed
@SandObserver
SandObserver deleted the fix/badge-capsule-corner branch August 30, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui/ux UI, UX, and accessibility only fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant