Skip to content

Distinguish docs sidebar section headings from page links#426

Merged
AnnaXWang merged 1 commit into
mainfrom
hypeship/docs-sidebar-hierarchy
Jun 30, 2026
Merged

Distinguish docs sidebar section headings from page links#426
AnnaXWang merged 1 commit into
mainfrom
hypeship/docs-sidebar-hierarchy

Conversation

@AnnaXWang

@AnnaXWang AnnaXWang commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Sidebar section headings (Overview, Working with your browser, Integrations, etc.) rendered at the same size and weight as the clickable page links beneath them, so the hierarchy didn't read — a heading looked just like a link.

This restyles the section headings into a quiet, muted eyebrow (smaller, lighter, letter-spaced) with a hairline divider between sections, so headings read as structure and the page links stand out as destinations.

Why the old rule was a no-op

The previous rule targeted #sidebar-title, an id Mintlify no longer emits. The group title is now .sidebar-group-header containing an inner h3.sidebar-title that inherits font/size/color. So the existing "bold 15px" rule matched nothing — which is why headings looked like links. The new rule targets .sidebar-group-header directly.

  • Active-page and page-link styling are unchanged (active stays charcoal + bold).
  • All colors come from the palette (grey-light-11 for muted text, grey-dark-12/charcoal for dividers).

Scope

Sidebar hierarchy only. Making the expandable toggles (Basics, Intermediate, Computer Use, etc.) clickable with card-based landing pages is a separate follow-up.

Test plan

  • Verified .sidebar-group-header is the correct target against the live rendered DOM (the old #sidebar-title id is gone).
  • Confirmed rendering in a local mintlify dev build: section headings recede to muted eyebrows with dividers; page links and the active/bold state are unchanged.
  • Spot-check dark mode on the Mintlify branch preview (dark overrides mirror the existing pattern in style.css).

Note

Low Risk
CSS-only navigation presentation in style.css; no auth, data, or application logic changes.

Overview
Replaces a no-op sidebar rule that targeted Mintlify’s removed #sidebar-title id with styles on .sidebar-group-header, so section labels (Overview, Integrations, etc.) read as structure instead of looking like page links.

Section headings are restyled as muted eyebrows (11px, normal weight, letter-spacing, grey text) with dark-mode color overrides matching existing style.css patterns. Non-first sections get extra spacing and a hairline top border via div[class*="mt-"] > .sidebar-group-header. Active page link styling is untouched.

Reviewed by Cursor Bugbot for commit 686f5ae. Bugbot is set up for automated code reviews on this repo. Configure here.

Section headings (Overview, Working with your browser, etc.) rendered at
the same size/weight as the clickable page links beneath them, so the
hierarchy didn't read. Restyle them into a quiet muted "eyebrow" with a
divider between sections.

The prior rule targeted #sidebar-title, an id Mintlify no longer emits
(the title is now .sidebar-group-header with an inner h3.sidebar-title),
so it was a no-op. Active page and item styling are unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Kernel 🟢 Ready View Preview Jun 29, 2026, 11:21 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@AnnaXWang AnnaXWang marked this pull request as ready for review June 29, 2026 23:28

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk assessment: Low risk.

I reviewed the actual diff for this PR. It modifies only style.css, with a small CSS-only change scoped to Mintlify sidebar section headings and section spacing. The blast radius is limited to the docs site's sidebar presentation; it doesn't modify application logic, authentication, permissions, infrastructure, data handling, prompts, or build/deploy configuration.

I found no CODEOWNERS file in the repository, and there were no existing approvals on the PR, so I'm approving based on the Low-risk assessment.

Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

@AnnaXWang AnnaXWang merged commit 84923e8 into main Jun 30, 2026
4 checks passed
@AnnaXWang AnnaXWang deleted the hypeship/docs-sidebar-hierarchy branch June 30, 2026 16:32
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