Skip to content

chore: give scroll and focus their own state and tests - #16983

Merged
teemingc merged 3 commits into
version-3from
client-focus-design
Sep 24, 2026
Merged

teemingc merged 3 commits into
version-3from
client-focus-design

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

On top of #16980: scroll.js owns the after-navigation scroll and focus.js owns the blur and the focus reset, with finish_navigation the one place that sequences them. Whether the app moved focus during the update is now read from document.activeElement directly instead of a snapshot taken before the update, and a navigation that does not reset no longer scrolls to where it already is.

A focused SVG element is now blurred before the DOM update like any HTML element.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 18d7352:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/18d73524174167d0a7d8b82983f2d5e3d9dd1f20

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16983

@changeset-bot

changeset-bot Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 18d7352

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

@Nic-Polumeyv
Nic-Polumeyv force-pushed the client-focus-design branch 2 times, most recently from 8081c8a to 889a452 Compare September 1, 2026 18:34
@teemingc
teemingc force-pushed the client-focus-module branch from 01f7ffb to fad9a52 Compare September 7, 2026 05:38
@teemingc
teemingc force-pushed the client-focus-design branch from 889a452 to b75501c Compare September 7, 2026 05:38
Base automatically changed from client-focus-module to version-3 September 8, 2026 11:58
@teemingc
teemingc force-pushed the client-focus-design branch from b75501c to d014d17 Compare September 8, 2026 11:58
@sveltejs sveltejs deleted a comment from coderabbitai Bot Sep 22, 2026
@teemingc
teemingc merged commit 058d29b into version-3 Sep 24, 2026
39 of 40 checks passed
@teemingc
teemingc deleted the client-focus-design branch September 24, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants