Fix topic sidebar toggle styling#1370
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adjusts the “floating” sidebar collapse/expand toggle styling in Sidebar.astro so that topic landing pages (where the mobile “On this page” TOC bar is not present) don’t render the toggle as a leftover TOC bar fragment, while preserving the existing in-bar styling on pages that do render the mobile TOC bar (and keeping API reference behavior intact).
Changes:
- Refines the no-TOC, 50–99.999rem breakpoint styling by splitting “in-bar” visuals by toggle ID (
#sidebar-*vs#topic-sidebar-*). - Keeps the shared positioning behavior for both toggles, while making topic toggle backgrounds/borders transparent when no TOC bar is present.
- Adds explicit hover handling for topic toggles in the no-TOC scenario to prevent reintroducing a bar-like background.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Summary
Validation