Skip to content

Commit

Permalink
Merge pull request #3367 from cassius2828/scroll-btn
Browse files Browse the repository at this point in the history
Corrected typo in "custom--top-button" class and added cursor:pointer style for button
  • Loading branch information
sophiabrandt authored Feb 10, 2025
2 parents 34f7447 + 1deb2b5 commit 79992e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function App() {
</a>
</div>
</footer>
<div className="custom--top-buttom">
<div className="custom--top-button">
<div
onClick={() => {
window.scrollTo({ top: 0, behavior: 'smooth' })
Expand Down
3 changes: 2 additions & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,9 @@ footer {
user-select: none;
}

.custom--top-buttom {
.custom--top-button {
position: fixed;
cursor: pointer;
bottom: 20px;
right: 20px;
z-index: 100;
Expand Down

0 comments on commit 79992e6

Please sign in to comment.