Repository navigation
fix(a11y): keep keyboard focus on the current onboarding step - #374
Merged
Merged
Conversation
An axe and keyboard audit of the first-run wizard (Zarestia-Dev#354) found: - Tab reached the config and UI choices on the other steps, which sit in the same track and are not visible. Steps other than the current one are now inert. - The step dots were role="tablist" with plain buttons. They keep their buttons and mark the current step with aria-current="step". - No main landmark or level-one heading: the wizard is now <main>, and each step's title is its h1 (the sub-headings move from h3 to h2). - The step image's alt repeated the title; it is decorative now.
Hakanbaban53
approved these changes
Nov 25, 2026
This was referenced Nov 25, 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.
Part of #354.
What
An axe and keyboard audit of the first-run wizard found:
inert.role="tablist"with plain buttons inside (axe: critical,aria-required-children). They stay buttons, and the current one hasaria-current="step".<main>, and each step's title is itsh1. Only the current step's title counts, since the others are inert. The card sub-headings move fromh3toh2so the levels don't skip; their classes set size and margin, so nothing looks different.Contrast on these screens (the green "Import" text, the dim description) is left for the separate contrast change.
Tests
onboarding.component.spec.ts: only the current step is reachable (also after moving on), the dots mark the current step and are not a tab list, there is a<main>with oneh1among the reachable steps, and axe finds no violations. All four fail on master.ng buildpass.