From d8669b869761ac15d1d611eda7dd94a62ce0fd7a Mon Sep 17 00:00:00 2001 From: Otis Sutton Date: Tue, 15 Aug 2023 08:30:11 +1200 Subject: Add `z-index` to mobile table of contents. (#402) Co-authored-by: Chris Swithinbank --- .changeset/wild-falcons-type.md | 5 +++++ .../starlight/components/TableOfContents/MobileTableOfContents.astro | 1 + packages/starlight/layout/TwoColumnContent.astro | 4 ++++ packages/starlight/style/props.css | 1 + 4 files changed, 11 insertions(+) create mode 100644 .changeset/wild-falcons-type.md diff --git a/.changeset/wild-falcons-type.md b/.changeset/wild-falcons-type.md new file mode 100644 index 00000000..328fe6a1 --- /dev/null +++ b/.changeset/wild-falcons-type.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Fix content sometimes appearing above the mobile table of contents. \ No newline at end of file diff --git a/packages/starlight/components/TableOfContents/MobileTableOfContents.astro b/packages/starlight/components/TableOfContents/MobileTableOfContents.astro index 917db070..4662742d 100644 --- a/packages/starlight/components/TableOfContents/MobileTableOfContents.astro +++ b/packages/starlight/components/TableOfContents/MobileTableOfContents.astro @@ -35,6 +35,7 @@ const t = useTranslations(locale);