Skip to content

Commit d843e5e

Browse files
authored
Fix an issue where the space dropdown could appear behind the header. (#2566)
1 parent a2e5647 commit d843e5e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/weak-dodos-love.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': minor
3+
---
4+
5+
Fix an issue where the space dropdown could appear behind the header.

packages/gitbook/src/components/Header/Dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function Dropdown<E extends HTMLElement>(props: {
4444
'absolute',
4545
'top-full',
4646
'left-0',
47-
'z-10',
47+
'z-20',
4848
'origin-top-left',
4949
'invisible',
5050
'transition-opacity',

packages/gitbook/src/components/Header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function Header(props: {
142142
{sections ? (
143143
<div
144144
className={tcls(
145-
'w-full shadow-thintop dark:shadow-light/1 bg-light dark:bg-dark z-[9] mt-0.5',
145+
'w-full shadow-thintop dark:shadow-light/1 bg-light dark:bg-dark mt-0.5',
146146
// Handle long section tabs, particularly on smaller screens.
147147
'overflow-x-auto hide-scroll',
148148
)}

0 commit comments

Comments
 (0)