Skip to content

feat(prompts): add accessible mode to progress - #636

Draft
dreyfus92 wants to merge 1 commit into
mainfrom
a11y/prompts-01b
Draft

dreyfus92 wants to merge 1 commit into
mainfrom
a11y/prompts-01b

Conversation

@dreyfus92

Copy link
Copy Markdown
Member

What does this PR do?

adds accessible mode to progress.

when enabled (accessible option > global setting > ACCESSIBLE env var), the drawn bar is replaced by plain lines:

  • start message printed once, plain text
  • one line per milestone at 25/50/75/100, 25%: <msg>
  • if a single advance() jumps past several milestones, only the highest is announced
  • heartbeat and final line come from the spinner's accessible path from feat(prompts): add accessible mode to spinner #596

voiceover was reading the bar out glyph by glyph. no new public options, non-accessible output is unchanged.

leaving this as a draft until i've re-recorded it under voiceover.

Closes #

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@changeset-bot

changeset-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c8e6c3d

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

This PR includes changesets to release 1 package
Name Type
@clack/prompts Minor

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 11, 2026

Copy link
Copy Markdown

commit: c8e6c3d

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.

1 participant