Repository navigation
VoiceOver - text box labels and complex question reads - #28
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Stylesheet-hidden prompt fragments can be announced by screen readers, while ID collision checks miss live-page elements, allowing duplicate IDs that may cause aria-labelledby to resolve to unrelated text.
2 open issues
What changed in this PR
This PR refines Quest’s VoiceOver support by improving complete-question announcements and separating choice labels from numeric guidance, supporting the accessibility work tracked in #1079.
Changes:
- Adds reusable focus targets for static prompts containing inline help.
- Separates numeric hints from choice names and improves selected-response validation contrast.
- Expands regression tests and English/Spanish manual screen-reader scenarios.
| File | Description |
|---|---|
| tests/integration/staticHelpQuestionFocus.spec.js | Tests prompt-focus eligibility, reuse, and fallback behavior. |
| tests/integration/choiceNumberDescriptions.spec.js | Tests numeric hint placement and choice naming. |
| tests/fixtures/canonical/tapWaterNumberSpanish.txt | Adds the Spanish manual numeric-label fixture. |
| tests/fixtures/canonical/tapWaterNumber.txt | Adds the English manual numeric-label fixture. |
| tests/e2e/popoverAccessibility.spec.js | Tests full-prompt focus, navigation, and modal dismissal. |
| tests/e2e/manualAccessibilityUrls.spec.js | Verifies both new manual fixture URLs. |
| tests/e2e/choiceNumberDescriptions.spec.js | Tests accessible names, validation styling, and response persistence. |
| Style1.css | Improves validation contrast in selected responses and forced-colors mode. |
| questionProcessor.js | Separates generated numeric hints and assigns choice caption references. |
| docs/accessibilityManualTest.md | Updates VoiceOver checks and documents numeric-label retests. |
| accessibleQuestionTextBuilder.js | Adds static prompt focus targets and caption-based selection announcements. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Related: episphere/connect#1079
VoiceOver refinements:
•Handle complex question reads (questions with bolded words and popovers mid sentence)
•Refine text input labels (labels were reading unnecessary text).
•Add more regression tests.