Skip to content
Merged
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
6 changes: 3 additions & 3 deletions components/blocks/v3/heroBox/heroBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ export const V3HeroBox = ({ data, priority = false }) => {
type="button"
aria-label="Scroll to content"
onClick={(e) => {
// Scroll so the arrow ends up 10% of the viewport height down from
// the top of the screen, pulling the hero up out of the way.
// Scroll the arrow 10% of the viewport height past the top of the
// screen, clearing the hero out of the way.
const { top } = e.currentTarget.getBoundingClientRect();
window.scrollTo({
top: window.scrollY + top - window.innerHeight * 0.1,
top: window.scrollY + top + window.innerHeight * 0.1,
behavior: "smooth",
});
}}
Expand Down
Loading