Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions components/ScrollTopArrow/ScrollTopArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ const ScrollTopArrow: React.FC = () => {
<button
aria-label="Scroll to top"
title="Scroll to top"
className={`${styles['arrow']} border-0 p-0 bg-transparent`}
className={`${styles.arrow} d-grid justify-content-center align-content-center rounded-pill border-0 p-4`}
onClick={() => window.scrollTo(0, 0)}
>
<Image src="/assets/mdx/topArrow.svg" layout="fill" aria-hidden="true" />
<Image
src="/assets/mdx/topArrow.svg"
layout="fixed"
height={28}
width={28}
aria-hidden="true"
className="opacity-75"
/>
</button>
)
}
Expand Down
4 changes: 4 additions & 0 deletions components/ScrollTopArrow/scrollTopArrow.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@use '../../scss/colors.module.scss';

.arrow {
background-color: colors.$bg-light-purple;
position: fixed;
height: 3em;
width: 3em;
Expand All @@ -9,4 +12,5 @@
z-index: 1;
top: 90%;
left: 90%;
box-shadow: 0 8px 20px 0 rgba(colors.$darkGray, 0.3);
}