rsnext/test/e2e/app-dir/navigation/app/hash-with-scroll-offset
Zack Tanner 3427d324d8
fix: app router hash scrolling should respect scroll-padding (#51268)
When navigating to a route with a hash parameter, the layout router
jumps to the element by scrolling to the node's `offsetTop` value.
However, this will ignore `scroll-padding`, which deviates from browser
behavior.

It looks like this isn't an issue in the pages router which currently
makes use of
[`scrollIntoView`](https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/router.ts#L2262).

Closes NEXT-1171
Fixes #49612

---------
2023-06-13 20:50:51 -07:00
..
global.css fix: app router hash scrolling should respect scroll-padding (#51268) 2023-06-13 20:50:51 -07:00
page.js fix: app router hash scrolling should respect scroll-padding (#51268) 2023-06-13 20:50:51 -07:00