Skip to content

fix(a11y): keep keyboard focus on the current onboarding step - #374

Merged
Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/onboarding-a11y
Nov 25, 2026
Merged

Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/onboarding-a11y

Conversation

@repires

@repires repires commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Part of #354.

What

An axe and keyboard audit of the first-run wizard found:

  • Hidden steps were reachable. All steps sit side by side in one track, so on the first step Tab also reached the config choice (Default, Custom) and the three main UI choices on later, invisible steps. Every step except the current one is now inert.
  • The step dots were role="tablist" with plain buttons inside (axe: critical, aria-required-children). They stay buttons, and the current one has aria-current="step".
  • No landmark or page heading: the wizard is now a <main>, and each step's title is its h1. Only the current step's title counts, since the others are inert. The card sub-headings move from h3 to h2 so the levels don't skip; their classes set size and margin, so nothing looks different.
  • The step image's alt text repeated the title ("Welcome to RClone Manager icon"); the image is decorative now.

Contrast on these screens (the green "Import" text, the dim description) is left for the separate contrast change.

Tests

  • New tests in 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 one h1 among the reachable steps, and axe finds no violations. All four fail on master.
  • Checked in the headless UI with Playwright: on the first step, Tab now goes dots → Import → Next with no stops on other steps, and axe reports no structural findings on any step in either theme.
  • Full suite (3668 tests; the lasso test timed out once under load and passes on its own, as in CI doesn't lint test code, and the lasso test can time out under load #367), ESLint, Prettier and ng build pass.

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 Hakanbaban53 self-assigned this Nov 25, 2026
@Hakanbaban53 Hakanbaban53 added the enhancement New feature or request label Nov 25, 2026
@Hakanbaban53
Hakanbaban53 merged commit 78b6030 into Zarestia-Dev:master Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants