From 24f5249ae9bc582dd67544ef84aeeefda89c4c0d Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Tue, 14 Jan 2025 12:49:20 +0100 Subject: [PATCH] Fix vertical section overflow (#2744) --- .changeset/dirty-ties-brush.md | 5 +++++ .../gitbook/src/components/SiteSections/SiteSectionList.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/dirty-ties-brush.md diff --git a/.changeset/dirty-ties-brush.md b/.changeset/dirty-ties-brush.md new file mode 100644 index 000000000..1da1ab70d --- /dev/null +++ b/.changeset/dirty-ties-brush.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Fix vertical section overflow color diff --git a/packages/gitbook/src/components/SiteSections/SiteSectionList.tsx b/packages/gitbook/src/components/SiteSections/SiteSectionList.tsx index 73f7736f0..084db6c81 100644 --- a/packages/gitbook/src/components/SiteSections/SiteSectionList.tsx +++ b/packages/gitbook/src/components/SiteSections/SiteSectionList.tsx @@ -30,7 +30,8 @@ export function SiteSectionList(props: { sections: SectionsList; className: Clas className={tcls( `text-dark/8 dark:text-light/8 text-sm border-b border-dark/2 dark:border-light/2 -mx-5 relative - before:absolute before:contents[] before:left-0 before:right-2 before:bottom-0 before:h-12 before:pointer-events-none before:bg-gradient-to-b from-transparent to-light dark:to-dark`, + before:absolute before:contents[] before:left-0 before:right-2 before:bottom-0 before:h-12 before:pointer-events-none + before:bg-gradient-to-b from-transparent to-light dark:to-dark sidebar-filled:to-light-2 dark:sidebar-filled:to-dark-1 [html.tint.sidebar-filled_&]:to-light-1 dark:[html.tint.sidebar-filled_&]:to-dark-1`, className, )} >