mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
We try to focus the new Segment after navigation. This behavior currently has now tests. I plan to change that behavior behind `experimental.appNewScrollHandler` so I'm adding some tests for the current behavior. The test is also meant as a fixture for manual testing with a screen reader.
11 lines
238 B
TypeScript
11 lines
238 B
TypeScript
export default function ScrollableSegmentPage() {
|
|
return (
|
|
<div
|
|
data-testid="segment-container"
|
|
style={{ height: '50vh', overflow: 'scroll' }}
|
|
>
|
|
<div style={{ height: '60vh' }}>Scroll me</div>
|
|
</div>
|
|
)
|
|
}
|