Skip to content

Commit

Permalink
fix(ui): replace invalid shadow utility in back-to-top button
Browse files Browse the repository at this point in the history
- Replace custom shadow with Tailwind's built-in shadow-xl
- Fix dark mode border class ordering
- Maintain hover effects and transitions
  • Loading branch information
kWAYTV committed Jan 7, 2025
1 parent 75eed8b commit d728209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/layout/back-to-top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function BackToTop() {
<Button
size='icon'
onClick={scrollToTop}
className='group h-10 w-10 rounded-full bg-background shadow-lg transition-all duration-300 hover:scale-110 hover:bg-foreground hover:shadow-[0_0_2rem_-0.5rem_theme(colors.foreground.DEFAULT)] dark:border dark:border-border'
className='dark:border-border group h-10 w-10 rounded-full bg-background shadow-lg transition-all duration-300 hover:scale-110 hover:bg-foreground hover:shadow-xl dark:border'
>
<ArrowUpIcon className='h-5 w-5 transition-all duration-300 group-hover:text-background dark:group-hover:text-background' />
</Button>
Expand Down

0 comments on commit d728209

Please sign in to comment.