Skip to content

Commit 2b0b434

Browse files
zevndadimaMachina
andauthoredJan 29, 2025··
Add x:cursor-pointer style to the backToTop component (#4101)
* Add cursor-pointer style to the backToTop component * Create slimy-beans-grin.md --------- Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
1 parent 427b080 commit 2b0b434

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/slimy-beans-grin.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nextra-theme-docs": patch
3+
---
4+
5+
add the missing `cursor-pointer` style in the `<BackToTop>` component

‎packages/nextra-theme-docs/src/components/back-to-top.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const BackToTop: FC<{
3030
disabled={hidden}
3131
className={({ disabled }) =>
3232
cn(
33-
'x:flex x:items-center x:gap-1.5',
33+
'x:flex x:items-center x:gap-1.5 x:cursor-pointer',
3434
'x:whitespace-nowrap', // Safari
3535
disabled ? 'x:opacity-0' : 'x:opacity-100',
3636
className

0 commit comments

Comments
 (0)
Please sign in to comment.