Skip to content

Commit

Permalink
fix: prevent overscroll on mobile toc (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreyfus92 committed Oct 24, 2023
1 parent 92b3b57 commit 0470734
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-socks-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Prevent overscrolling on mobile table of contents by setting 'overscroll-behavior: contain'.
1 change: 1 addition & 0 deletions packages/starlight/components/MobileTableOfContents.astro
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const t = useTranslations(locale);
overflow-y: auto;
background-color: var(--sl-color-black);
box-shadow: var(--sl-shadow-md);
overscroll-behavior: contain;
}
</style>

Expand Down

0 comments on commit 0470734

Please sign in to comment.