From 6c46b5db93d4400cf49f0d66cf18898eef13ab49 Mon Sep 17 00:00:00 2001 From: mohamedh Date: Wed, 18 Mar 2026 12:08:36 +0000 Subject: [PATCH 01/12] style: improve sidebar item layout, focus style, and spacing --- astro.config.ts | 6 + src/components/overrides/Sidebar.astro | 167 ++++++++---------- src/components/overrides/SidebarSublist.astro | 125 +++++++++++++ src/styles/sidebar.css | 112 ++++-------- 4 files changed, 242 insertions(+), 168 deletions(-) create mode 100644 src/components/overrides/SidebarSublist.astro diff --git a/astro.config.ts b/astro.config.ts index 95891e52397..015bfc8681b 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -215,6 +215,12 @@ export default defineConfig({ "../components/Page.astro": fileURLToPath( new URL("./src/components/overrides/Page.astro", import.meta.url), ), + "./SidebarSublist.astro": fileURLToPath( + new URL( + "./src/components/overrides/SidebarSublist.astro", + import.meta.url, + ), + ), }, }, }, diff --git a/src/components/overrides/Sidebar.astro b/src/components/overrides/Sidebar.astro index e532586f7d3..b605e6c8d3b 100644 --- a/src/components/overrides/Sidebar.astro +++ b/src/components/overrides/Sidebar.astro @@ -7,7 +7,9 @@ import { lookupProductTitle } from "~/util/sidebar"; const [product, module] = Astro.url.pathname.split("/").filter(Boolean); --- -