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',