Skip to content

Commit 77a2307

Browse files
committed
Make Support button and ToC appear behind language dropdown
When the `zIndex` is too high, the Support button and ToC appear on top of the language dropdown menu. reducing the `zIndex` makes the language dropdown menu appear over the Support button and ToC.
1 parent af5eb6e commit 77a2307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/DocItem/Layout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function DocItemLayout({children}: Props): JSX.Element {
7373
{!hideTOC && windowSize !== 'mobile' && (
7474
<div className="col col--3" style={{ position: "relative" }}>
7575
{/* Add a wrapper div to make the support dropdown and TOC sticky */}
76-
<div style={{ position: "sticky", top: "80px", zIndex: 1000 }}>
76+
<div style={{ position: "sticky", top: "80px", zIndex: 1 }}>
7777
{/* Add the support dropdown above the TOC on desktop */}
7878
<div style={{ display: 'flex', justifyContent: 'flex-start', padding: '0px 17px', right: '0' }}>
7979
<SupportDropdownMenu />

0 commit comments

Comments
 (0)