diff --git a/.changeset/large-hornets-exist.md b/.changeset/large-hornets-exist.md new file mode 100644 index 000000000..2ffda899e --- /dev/null +++ b/.changeset/large-hornets-exist.md @@ -0,0 +1,5 @@ +--- +'gitbook': minor +--- + +Fix an issue where the active site section indicator appeared above any dropdowns. diff --git a/packages/gitbook/src/components/Header/Dropdown.tsx b/packages/gitbook/src/components/Header/Dropdown.tsx index 597522a49..36e938714 100644 --- a/packages/gitbook/src/components/Header/Dropdown.tsx +++ b/packages/gitbook/src/components/Header/Dropdown.tsx @@ -44,7 +44,6 @@ export function Dropdown(props: { 'absolute', 'top-full', 'left-0', - 'z-20', 'origin-top-left', 'invisible', 'transition-opacity', diff --git a/packages/gitbook/src/components/Header/Header.tsx b/packages/gitbook/src/components/Header/Header.tsx index d8664adcf..5a092ff5e 100644 --- a/packages/gitbook/src/components/Header/Header.tsx +++ b/packages/gitbook/src/components/Header/Header.tsx @@ -72,11 +72,11 @@ export function Header(props: { )} > - +
{!hasSiteSections && isMultiVariants ? ( ) : null} - +
{customization.header.links.map((link, index) => { return ( diff --git a/packages/gitbook/src/components/Header/HeaderLinkMore.tsx b/packages/gitbook/src/components/Header/HeaderLinkMore.tsx index cc304539c..9eb98a313 100644 --- a/packages/gitbook/src/components/Header/HeaderLinkMore.tsx +++ b/packages/gitbook/src/components/Header/HeaderLinkMore.tsx @@ -43,7 +43,7 @@ export function HeaderLinkMore(props: { ); return ( -
+
{links.map((link, index) => ( diff --git a/packages/gitbook/src/components/Header/HeaderLinks.tsx b/packages/gitbook/src/components/Header/HeaderLinks.tsx index fc609949b..4522f0782 100644 --- a/packages/gitbook/src/components/Header/HeaderLinks.tsx +++ b/packages/gitbook/src/components/Header/HeaderLinks.tsx @@ -13,7 +13,7 @@ export async function HeaderLinks({ children }: HeaderLinksProps) {
{children}