Skip to content

Commit 2a3e3e7

Browse files
87xiedimaMachina
andauthoredSep 10, 2024··
[v3] fix first item in FileTree not within permitted parent element (#3212)
* [v3] fix first item in `FileTree` not within permitted parent element * Update packages/nextra/src/client/components/file-tree.tsx --------- Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
1 parent ec1ba75 commit 2a3e3e7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎.changeset/empty-bottles-study.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'nextra-theme-blog': patch
3+
'nextra-theme-docs': patch
4+
'nextra': patch
5+
---
6+
7+
Fix first list item in `<FileTree>` not within permitted parent elements

‎packages/nextra/src/client/components/file-tree.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function Tree({ children }: { children: ReactNode }): ReactElement {
3131
'_not-prose' // for nextra-theme-blog
3232
)}
3333
>
34-
<div className="_inline-block _rounded-lg _border _px-4 _py-2 dark:_border-neutral-800">
34+
<ul className="_inline-block _rounded-lg _border _px-4 _py-2 _border-neutral-200/70 contrast-more:_border-neutral-400 dark:_border-primary-100/10 contrast-more:dark:_border-neutral-400">
3535
{children}
36-
</div>
36+
</ul>
3737
</div>
3838
)
3939
}

0 commit comments

Comments
 (0)
Please sign in to comment.