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.
8 lines
151 B
TypeScript
8 lines
151 B
TypeScript
export default function SegmentWithFocusableDescendant() {
|
|
return (
|
|
<div>
|
|
<button type="button">Focusable Button</button>
|
|
</div>
|
|
)
|
|
}
|