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.
When using a screen reader the polls are not easily perceivable.
This is related to WCAG Success Criterion 1.3.1 Info and Relationships.
The checkbox component now uses a given id, the name or a random id to link it's input to the label. This further optimizes the perception with assistive technologies.
The type packages missed the last update and using the
useId
hook failed linting.The question and answers were not grouped together logically enough for assistive technologies like a screen reader. Wrapping in a fieldset with a legend binds them together better instead of the
ul
element. The poll result is logically still an unordered list. The bind the labels and checkboxes together thepollId
and index of the answers is used as id.