diff --git a/.changeset/chilled-files-unite.md b/.changeset/chilled-files-unite.md new file mode 100644 index 0000000000..e6e32ffbfb --- /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 f4e4ec80e7..9fb0186cd1 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 15feeb7509..49236f70b5 100644 --- a/packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx +++ b/packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx @@ -101,7 +101,7 @@ export function ScrollSectionsList(props: { 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',