Skip to content

Commit

Permalink
Update src/components/ScrollToTop/ScrollToTopButton.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com>
  • Loading branch information
tomek-i and codiumai-pr-agent-free[bot] authored Aug 29, 2024
1 parent ed6b856 commit 36a5bda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ScrollToTop/ScrollToTopButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export const ScrollToTopButton: React.FC = () => {
};

return (
<button
<button
onClick={handleScrollToTop}
aria-label="Scroll to top"
className={`fixed bottom-5 right-5 p-2.5 text-lg cursor-pointer z-50 bg-blue-500 text-white rounded transition-opacity duration-300 ${
isVisible ? 'opacity-100' : 'opacity-0 pointer-events-none'
}`}
>
Top
</button>
<span aria-hidden="true">Top</span>
);
};

0 comments on commit 36a5bda

Please sign in to comment.