fix(presentation): keep back-navigation scroll and open hash targets (08-08)
A direct link to /page#target stayed at the top: the target renders with the lazy page, after the router scrolled up. PageHeader now scrolls to it below the sticky header, focus never scrolls, and POP no longer scrolls to top. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b7fc7e53ce
commit
dbe6b769bf
@@ -301,9 +301,15 @@ custom fallback을 넘겨 retry/reset 기능을 잃지 않게 한다. boundary
|
||||
- mouse 사용자가 불필요한 focus ring을 보지 않게 할 수는 있지만 keyboard focus
|
||||
indication을 전역으로 제거하지 않음
|
||||
- modal/drawer가 닫히면 opener에 focus 복원
|
||||
- backward/forward navigation은 저장한 scroll 복원
|
||||
- backward/forward navigation은 저장한 scroll 복원. 복원은 브라우저가 하고,
|
||||
`RouteLifecycle`은 POP이 아닐 때만 top으로 보낸다(`app-router.tsx`).
|
||||
`PageHeader`의 heading focus는 `preventScroll`이라 복원된 위치를 옮기지 않는다
|
||||
- 새 primary route는 top으로 이동
|
||||
- hash target은 fixed header offset과 focus 가능 여부를 처리
|
||||
- hash target은 fixed header offset과 focus 가능 여부를 처리. 페이지가 그려진 뒤
|
||||
`PageHeader`가 대상으로 스크롤하고, 대상이 focus 가능하면 대상에, 아니면
|
||||
heading에 focus한다(`page-header.tsx`). header 높이는 `html`의
|
||||
`scroll-padding-top`으로 뺀다(`shell.css`). 브라우저 검증은
|
||||
`tests/e2e/scroll-restoration.spec.ts`
|
||||
- screen reader용 route title/live announcement는 중복 발표를 피함
|
||||
|
||||
### 6.4 취소와 dirty form
|
||||
|
||||
Reference in New Issue
Block a user