Repository navigation
UX: Scroll to the top when the wizard step changes - #326
Merged
angusmcleod merged 3 commits intoNov 5, 2026
Merged
Conversation
When moving to the next step of a long wizard the page stayed scrolled down, or jumped to the first focused field, so the new step's title and description were not visible. Scroll to the top on step change and cancel focus-driven scrolls while the step renders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core's composer focuses the editor on setup, after the route has scrolled to the top, so steps with a composer field opened scrolled down to it. Focus the wizard composer without scrolling instead of holding the page at the top for a fixed time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSz8MWGMF9Utk4gyCsBEcw
angusmcleod
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When moving to the next step of a long wizard the page stays scrolled down, or jumps to the first focused field (e.g. the composer textarea), so users don't see the new step's title and description.
Change
CustomWizardStep#scrollToTopruns when the step changes (indidReceiveAttrs, next toautoFocus):#main-outlet/.wizard-columnto the top;We've been running this logic in production on the pre-GJS component. If you have a preferred hook for step transitions, or would like a lighter approach, we're happy to adjust.
🤖 Generated with Claude Code