rsnext/test
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
..
.stats-app Alias next/server for edge runtime (#50268) 2023-05-24 15:34:29 -07:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development Break up large test suites (#50458) 2023-05-28 13:59:41 -07:00
e2e fix: app router hash scrolling should respect scroll-padding (#51268) 2023-06-13 20:50:51 -07:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration fix(cli): add all available options to cli commands, format them consistently (#48708) 2023-06-14 02:36:08 +00:00
lib Add experimental caseSensitiveRoutes config (#50869) 2023-06-07 21:50:22 +00:00
production Fix standalone not found (#51172) 2023-06-12 21:14:32 +00:00
unit fix: eslint not ignoring "/app" (#50261) 2023-05-26 16:27:42 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts Increase CI test timeout (#47973) 2023-04-05 10:16:48 -07:00
jest.d.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt

See Testing for more information on how you can run/write/debug tests for Next.js.