Skip to content

Remove default shadow from "On This Page" title in Nextra TOC for a c…#512

Merged
vrijraj merged 1 commit intomainfrom
dev
Apr 2, 2026
Merged

Remove default shadow from "On This Page" title in Nextra TOC for a c…#512
vrijraj merged 1 commit intomainfrom
dev

Conversation

@vrijraj
Copy link
Copy Markdown
Contributor

@vrijraj vrijraj commented Apr 2, 2026

…leaner look

Remove shadow from "On This Page" title in Nextra TOC

  • Removes default shadow from the "On This Page" title in Nextra's table of contents for a cleaner visual appearance
  • Updates src/overrides.css with a targeted rule for .nextra-toc p that clears Tailwind shadow CSS variables (--tw-shadow, --tw-shadow-colored) and forces box-shadow: none !important
  • Supplements existing shadow removal rules for .nextra-toc container and .nextra-scrollbar

@vrijraj vrijraj merged commit a94df7e into main Apr 2, 2026
2 of 3 checks passed
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

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

Project Deployment Actions Updated (UTC)
site Building Building Preview, Comment Apr 2, 2026 2:01pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4ab51984-4fc2-4e3b-9a24-26ba991debfb

📥 Commits

Reviewing files that changed from the base of the PR and between 41c3d35 and 198f473.

📒 Files selected for processing (1)
  • src/overrides.css

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Walkthrough

Updated src/overrides.css to remove the "On This Page" TOC title shadow by adding a CSS rule for .nextra-toc p that clears Tailwind shadow variables and applies box-shadow: none !important, supplementing existing shadow removal rules.

Changes

Cohort / File(s) Summary
CSS Shadow Removal
src/overrides.css
Added targeted rule for .nextra-toc p to clear Tailwind shadow CSS variables (--tw-shadow, --tw-shadow-colored) and force box-shadow: none !important to further eliminate default TOC title shadows.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

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 and usage tips.

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.

1 participant