Skip to content

Commit

Permalink
🐛 Navigation clicking in book theme (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Sep 26, 2023
1 parent 42314ec commit 55f7d0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-owls-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/site': patch
---

Fix z-index bug from a11y reordering
3 changes: 1 addition & 2 deletions packages/site/src/components/Navigation/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ export const TableOfContents = ({
'fixed',
`xl:${grid}`, // for example, xl:article-grid
'grid-gap xl:w-screen xl:pointer-events-none overflow-auto max-xl:min-w-[300px]',
{ hidden: !open },
{ 'z-30': open },
{ hidden: !open, 'z-30': open, 'z-10': !open },
)}
style={{ top }}
>
Expand Down

0 comments on commit 55f7d0f

Please sign in to comment.