Skip to content

Commit aac469e

Browse files
Improve sidebar item arrow animation (#4364)
* Refactor sidebar component styles for improved readability and consistency * Create swift-squids-rhyme.md --------- Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent 18e7fb9 commit aac469e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/swift-squids-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nextra-theme-docs": patch
3+
---
4+
5+
fix: improve sidebar folder item arrow animation

packages/nextra-theme-docs/src/components/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ const Folder: FC<FolderProps> = ({ item: _item, anchors, onFocus, level }) => {
158158
className={cn(
159159
'x:shrink-0',
160160
'x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5',
161-
'x:motion-reduce:*:transition-none x:*:origin-center x:*:transition-transform x:*:rtl:-rotate-180',
162-
open && 'x:*:ltr:rotate-90 x:*:rtl:-rotate-270'
161+
'x:motion-reduce:transition-none x:origin-center x:transition-all x:rtl:-rotate-180',
162+
open && 'x:ltr:rotate-90 x:rtl:-rotate-270'
163163
)}
164164
/>
165165
</ComponentToUse>

0 commit comments

Comments
 (0)