Skip to content

Conversation

@zenoachtig
Copy link
Contributor

@zenoachtig zenoachtig commented Dec 2, 2025

This pull request introduces a new SideSheet component and refactors the TOC and AIChat to use it.

SideSheet component

  • Adds SideSheet component, responsible for rendering a component in a fixed sidebar (with optional backdrop) on the left or right of the screen. It can be controlled with an open prop (needed for AIChat) or watch for changes on the body (needed for TableOfContents).
  • Refactored TableOfContents and AIChat to use SideSheet

ScrollContainer component

  • Refactored TableOfContents to use ScrollContainer, removed the custom TOCScrollContainer in favour of the standard component we use elsewhere. This gives us goodies like faded edges and scroll buttons, in addition to standardising the component.
  • Updated active prop on ScrollContainer to take any query selector instead of an ID.

Other layout updates

  • Moved layout of TOC's innerHeader to live in one place, namely SpaceLayout, instead of splitting across two files
  • Simplified HeaderMobileMenu to no longer have
  • Updated layout components (CustomizationRootLayout, SiteDynamicLayout, SiteStaticLayout) to accept both a htmlClassName and bodyClassName, needed to set some sheet-related classes that only work on html or body.
  • Improved support for devices with notches by adding safe-area-insets and viewportFit: cover to the viewport meta tag.
  • Simplified HeaderMobileMenu button by removing scroll tracking and state management now it's always occluded by a sidesheet.
  • Fixed minor UI issues in AnnouncementBanner when using safe-area-insets

@linear
Copy link

linear bot commented Dec 2, 2025

@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

🦋 Changeset detected

Latest commit: 8ee84f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci
Copy link

argos-ci bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 78 changed Dec 12, 2025, 11:00 AM
v2-cloudflare (Inspect) 👍 Changes approved 330 changed Dec 12, 2025, 11:04 AM
v2-vercel (Inspect) 👍 Changes approved 340 changed Dec 12, 2025, 11:05 AM

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