Skip to content

Commit

Permalink
hide default <summary> arrow on mobile (#4109)
Browse files Browse the repository at this point in the history
more
  • Loading branch information
dimaMachina authored Jan 29, 2025
1 parent 90b8c66 commit b0e686e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/sharp-humans-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"nextra": patch
"nextra-theme-blog": patch
"nextra-theme-docs": patch
---

hide default `<summary>` arrow on mobile
2 changes: 1 addition & 1 deletion packages/nextra/src/client/mdx-components/summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Summary: FC<ComponentProps<'summary'>> = ({
'x:cursor-pointer x:transition-colors',
'x:hover:bg-gray-100 x:dark:hover:bg-neutral-800',
'x:select-none x:rounded',
'x:marker:content-[""]',
'x:[&::-webkit-details-marker]:hidden', // Safari
'x:flex x:items-center',
className
)}
Expand Down

0 comments on commit b0e686e

Please sign in to comment.