Skip to content

fix(landing): square the bordered edge on accent callouts - #1206

Open
Abeuty wants to merge 1 commit into
mainfrom
claude/fix-rounded-side-border
Open

fix(landing): square the bordered edge on accent callouts#1206
Abeuty wants to merge 1 commit into
mainfrom
claude/fix-rounded-side-border

Conversation

@Abeuty

@Abeuty Abeuty commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Three landing callouts set rounded-lg together with border-l-2, so the 2px accent border was dragged around an 8px corner radius with no adjacent border to continue into. The bar tapers and detaches at both ends instead of reading as a flush accent rule.

Confirmed on the live build:

border-left: 2px    border-top: 0px
border-top-left-radius: 8px

The fix

rounded-lgrounded-r-lg. The bordered edge goes square, the bar sits flush, the outer corners stay rounded.

This is the idiom the codebase already uses correctly in two places, so it matches house style rather than introducing a new one:

  • Toc.tsxborder-l-2 rounded-r
  • HomeSectionFallbacks.tsxrounded-r-md border-l-2

Scope

All three instances of the pattern, not just the one that was reported — they share the same accent token and fixing one would have left two identical siblings wrong:

  • landing/StartLanding.tsx:203
  • landing/RouterLanding.tsx:332
  • landing/ConfigLanding.tsx:245

I audited every rounded-* + border-{l,r,t,b}-N pairing in the repo. Everything else is legitimate — already squared on the bordered edge, joining two adjacent surfaces (rounded-t-* with border-b-0, as in the markdown tabs and ProductDrawer), or the spinner idiom (rounded-full border-b-2). These three were the only violations.

Verification

pnpm test green: 0 type errors, 0 lint warnings, 466 tests.

Not verified visually — the preview pane was bound to another worktree at the time. The change is a deterministic radius swap with in-repo precedent.

Summary by CodeRabbit

  • Style
    • Updated landing page callout and note panels to round only their right corners, creating a more consistent visual treatment.
Three landing callouts set `rounded-lg` together with `border-l-2`, so the
2px accent border was dragged around an 8px corner radius with no adjacent
border to continue into. The result is a bar that tapers and detaches at both
ends instead of reading as a flush accent rule.

Squares the bordered edge with `rounded-r-lg`, which is the idiom already used
correctly elsewhere in the codebase — Toc.tsx (`border-l-2 rounded-r`) and
HomeSectionFallbacks.tsx (`rounded-r-md border-l-2`).

A box should never carry a border on one side while rounding that side's
corners.

Audited the rest of the codebase for the same pattern: every other
radius + single-side-border pairing is either already squared on the bordered
edge, or joins two adjacent surfaces (`rounded-t-*` with `border-b-0`), or is
the spinner idiom (`rounded-full border-b-2`). These three were the only
violations.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ad8f7a80-60f9-4854-a537-4c083e52df80

📥 Commits

Reviewing files that changed from the base of the PR and between 358729e and 39ca6b9.

📒 Files selected for processing (3)
  • src/components/landing/ConfigLanding.tsx
  • src/components/landing/RouterLanding.tsx
  • src/components/landing/StartLanding.tsx

Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

Three landing-page callout panels now use rounded-r-lg instead of rounded-lg. The changes affect visual corner rounding only.

Changes

Landing callout styling

Layer / File(s) Summary
Right-side corner rounding
src/components/landing/ConfigLanding.tsx, src/components/landing/RouterLanding.tsx, src/components/landing/StartLanding.tsx
Three callout panels now round only their right corners. No logic or data changes were made.

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

Merge Risk: ⚪ Minimal · up to 39ca6

The change squares the bordered edge on three landing-page callouts without altering application behavior, interfaces, data, permissions, dependencies, or deployment behavior; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: tannerlinsley

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main visual change: squaring the bordered edge on the landing-page accent callouts.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/fix-rounded-side-border

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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 39ca6b9 Commit Preview URL

Branch Preview URL
Aug 28 2026, 10:06 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant