Name a list of choices under a question by the question

Open
#313 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
60/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, markdown
Domain
accessibility

Research direction

Start by locating the markdown-it plugin in this repo that recognises Q (Claude): / A: blocks and renders the answer's choices as a named radio group — that existing path is the behaviour to extend. Then find the token/render path for an ordinary list following a question, since the fix is to give that list the same group name derived from the preceding question, at margin and inside list items alike. Check the plugin's test fixtures and add cases for the two examples in the issue; done means both render as one group named by the question.

Written by the indexing model from the issue text.

Description

accessibility

A question's answer written on its own line is a group of choices named by the question, for a screen reader. A list of choices under the question isn't: each choice is announced on its own, with nothing saying what it answers.

Q (Claude): Fix it now?
A: ( ) Now ( ) Later

Q (Claude): Ship it?
- ( ) Yes
- ( ) No

Today: "Now" and "Later" are a radio group named "Fix it now?"; "Yes" and "No" are two radios with no group, named only by their own words.

Instead: a list of choices straight under a question is a group named by the question, as an answer's choices are, at the margin and inside a list's item alike.

Came up in the review of #302.

Dominant language
JavaScript
Stars
0
Forks
1
Avg merge
2d 4h
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jzheaux/reader

All issues in jzheaux/reader

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.