From 2e0d706d43ee8aaed6d14d533cce82275d17c32d Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Wed, 27 Aug 2025 13:15:07 +0200 Subject: [PATCH] Fix corner radius of active section on "Line" sidebar style (#3601) --- .changeset/chilled-files-unite.md | 5 +++++ .../src/components/PageAside/AsideSectionHighlight.tsx | 2 +- .../gitbook/src/components/PageAside/ScrollSectionsList.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/chilled-files-unite.md diff --git a/.changeset/chilled-files-unite.md b/.changeset/chilled-files-unite.md new file mode 100644 index 000000000..e6e32ffbf --- /dev/null +++ b/.changeset/chilled-files-unite.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix corner radius of active section on "Line" sidebar style diff --git a/packages/gitbook/src/components/PageAside/AsideSectionHighlight.tsx b/packages/gitbook/src/components/PageAside/AsideSectionHighlight.tsx index f4e4ec80e..9fb0186cd 100644 --- a/packages/gitbook/src/components/PageAside/AsideSectionHighlight.tsx +++ b/packages/gitbook/src/components/PageAside/AsideSectionHighlight.tsx @@ -25,7 +25,7 @@ export const AsideSectionHighlight = React.memo( 'rounded-md', 'straight-corners:rounded-none', 'circular-corners:rounded-2xl', - 'sidebar-list-line:rounded-l-none', + 'sidebar-list-line:rounded-l-none!', 'sidebar-list-pill:bg-primary', '[html.theme-muted.sidebar-list-pill_&]:bg-primary-hover', diff --git a/packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx b/packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx index 103082ce8..196ef3f28 100644 --- a/packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx +++ b/packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx @@ -95,7 +95,7 @@ export function ScrollSectionsList({ sections }: { sections: DocumentSection[] } 'rounded-md', 'straight-corners:rounded-none', 'circular-corners:rounded-2xl', - 'sidebar-list-line:rounded-l-none', + 'sidebar-list-line:rounded-l-none!', 'hover:bg-tint-hover', 'theme-gradient:hover:bg-tint-12/1',