Skip to content

fix(site/src/pages/TemplateBuilder): mark the current template builder step with aria-current - #31854

Merged
jeremyruppel merged 1 commit into
mainfrom
a11y/info-relationship-visual-only-2
Nov 10, 2026
Merged

jeremyruppel merged 1 commit into
mainfrom
a11y/info-relationship-visual-only-2

Conversation

@jeremyruppel

Copy link
Copy Markdown
Collaborator

The template builder's Selection sidebar showed the current step (1, 2, or 3) only through the styling of the step circle. Screen readers could not tell which step was active.

StepIndicator now sets aria-current="step" on the current step, both on the button variant and on the non-navigable variant. There is no visual change.

Closes DEQ-557

Ticket UI surface
DEQ-557 Create Template builder, Selection sidebar steps 1 to 3 (SelectionSummary.tsx)
Decision log
  • WCAG 1.3.1, Deque checkpoint 1.3.1.a (info-relationship-visual-only). aria-current="step" is the standard way to mark the current step in a step indicator. It is a global attribute, so it is valid on both the button and the plain div.
  • Completed and upcoming steps are already distinguishable to assistive tech: reachable steps are buttons, and upcoming steps are inert text. Only the current step lacked a programmatic signal.
  • Coverage: Vitest tests assert that only the current step has aria-current="step", in both the navigable and non-navigable cases. They fail without the fix.
  • DEQ-305 (session timeline) has the same label but a different root cause, so it is fixed in a separate PR.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.

@linear-code

linear-code Bot commented Nov 6, 2026

Copy link
Copy Markdown

DEQ-557

@jeremyruppel
jeremyruppel requested a review from aqandrew November 6, 2026 16:34
@jeremyruppel
jeremyruppel marked this pull request as ready for review November 6, 2026 16:34
@jeremyruppel
jeremyruppel merged commit 8381f6f into main Nov 10, 2026
54 of 55 checks passed
@jeremyruppel
jeremyruppel deleted the a11y/info-relationship-visual-only-2 branch November 10, 2026 14:04
@jeremyruppel
jeremyruppel temporarily deployed to main November 10, 2026 14:04 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
main — 1fe0df43 Deployed Nov 10, 2026 by jeremyruppel via cla #253314
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants