Skip to content

Restyle follow-ups: mobile hamburger sidebar + dark-mode alert heading#5254

Merged
marcduiker merged 3 commits into
dapr:v1.18from
marcduiker:restyle-followup-fixes
Jul 20, 2026
Merged

Restyle follow-ups: mobile hamburger sidebar + dark-mode alert heading#5254
marcduiker merged 3 commits into
dapr:v1.18from
marcduiker:restyle-followup-fixes

Conversation

@marcduiker

Copy link
Copy Markdown
Contributor

Follow-up fixes for the docs restyle (#5253)

Two small fixes to the merged restyle. Layouts + CSS only — no content changes.

1. Mobile / tablet: sidebar as a hamburger menu below lg

The site sets sidebar_search_disable, which surfaced a Docsy breakpoint mismatch: Docsy force-shows .td-sidebar-nav at md (≥768px), while the mobile menu container (#content-mobile) and toggle only appear below lg, and the hamburger button was d-md-none (hidden ≥768px). So at 768–992px (tablets and landscape/larger phones) the full left nav showed with no toggle.

  • sidebar.html: hamburger toggle d-md-noned-lg-none (visible below lg).
  • _sidebar.scss: below lg, keep .td-sidebar-nav collapsed until the hamburger opens it (override the md force-show); stack the sidebar + main full-width so it reads as a collapsible menu bar (bottom border) instead of a cramped 25% side column; and force the hamburger's Font Awesome weight so the fa-bars glyph renders.

Net: below 992px the left nav is a hamburger menu; at ≥992px the normal sidebar.

2. Dark mode: .alert-heading was illegible

Docsy hardcodes light-theme colors on .alert-* .alert-heading (e.g. .alert-primary .alert-heading { color:#0D2192 }). The default {{% alert %}} is alert-primary, so its dark-blue heading was invisible on the dark callout background.

  • _callouts.scss: re-map each .alert-* .alert-heading (and the matching .pageinfo-*) to --d-* tokens that flip per theme. Light values match Docsy's (no light-mode change); dark values stay legible.

Testing

Previewed locally via hugo server (macOS). Resize under ~992px to see the hamburger sidebar; toggle dark mode on a page with an alert to see the legible heading. No daprdocs/content/** or sdkdocs/** files changed.

🤖 Generated with Claude Code

marcduiker and others added 2 commits July 19, 2026 13:12
The restyle merged (dapr#5253) exposed a Docsy 'sidebar_search_disable' breakpoint
mismatch: Docsy force-shows .td-sidebar-nav at md (>=768px) while the mobile
menu container (#content-mobile) and toggle only appear below lg, and the
hamburger button was d-md-none (hidden >=768px). So at 768-992px (tablets /
landscape phones) the full sidebar showed with no toggle.

Fix (layouts + CSS only, no content):
- sidebar.html: hamburger toggle d-md-none -> d-lg-none (visible below lg).
- _sidebar.scss: below lg, keep .td-sidebar-nav collapsed until the hamburger
  opens it (override the md force-show), and stack the sidebar + main full-width
  so the sidebar reads as a collapsible menu bar (bottom border) instead of a
  cramped 25% side column. Force the hamburger's Font Awesome weight so the
  fa-bars glyph renders.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Docsy sets fixed light-theme colors on .alert-* .alert-heading (e.g.
.alert-primary .alert-heading { color:#0D2192 }); the dark-blue primary heading
was illegible on the dark callout background. Re-mapped to --d-* tokens that
flip per theme — light values match Docsy's (no light-mode change), dark values
stay legible. Also covers the matching .pageinfo-* headings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@marcduiker
marcduiker requested review from a team as code owners July 19, 2026 11:23
@marcduiker
marcduiker merged commit 0fbd793 into dapr:v1.18 Jul 20, 2026
7 checks passed
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.

2 participants