Skip to content

Commit 784e8ad

Browse files
committed
Fix go to top [Fixes #15412]
1 parent ec02d02 commit 784e8ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ const Footer = ({ lastDeployLocaleTimestamp }: FooterProps) => {
320320
<Button
321321
variant="outline"
322322
isSecondary
323-
onClick={() => scrollIntoView("__next")}
323+
onClick={() => scrollIntoView("top")}
324324
>
325325
<IoChevronUpSharp /> Go to top
326326
</Button>

src/layouts/BaseLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const BaseLayout = ({
5151
* layout on initial load.
5252
*/}
5353
<SkipLink />
54-
<div className="mx-auto max-w-screen-2xl">
54+
<div className="mx-auto max-w-screen-2xl" id="top">
5555
<Nav />
5656

5757
{/* TODO: FIX TRANSLATION BANNER LOGIC FOR https://github.com/ethereum/ethereum-org-website/issues/11305 */}

0 commit comments

Comments
 (0)