Merged
Conversation
Add role='group' and aria-labelledby to the <ol> elements containing compiler option checkboxes in the TypeScript Playground TS Config panel. Each category heading (<h4>) now has a unique id, and the associated checkbox list references it via aria-labelledby, ensuring screen readers can programmatically determine the relationship between the visible category label and its group of checkboxes. This fixes WCAG 1.3.1 (Info and Relationships) for all 9 category groups: Output Formatting, Emit, Compiler Diagnostics, Interop Constraints, Language and Environment, Type Checking, Modules, Projects, and Backwards Compatibility. Fixes Bug 2737338 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-plant-05c166c10-3529.centralus.5.azurestaticapps.net |
There was a problem hiding this comment.
Pull request overview
Fixes an accessibility issue in the TypeScript Playground TS Config panel by ensuring category headings are programmatically associated with the checkbox groups they label (WCAG 1.3.1).
Changes:
- Adds a stable
idto each category<h4>heading. - Adds
role="group"andaria-labelledbyto each<ol>wrapping a category’s checkbox options.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
jakebailey
approved these changes
Mar 18, 2026
DanielRosenwasser
approved these changes
Mar 18, 2026
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.
Fix: Associate category labels with checkbox groups in playground config
The TypeScript Playground TS Config panel displays boolean compiler options as checkboxes grouped under category headings (e.g., 'Output Formatting', 'Emit', 'Type Checking'). These category headings were not programmatically associated with their checkbox groups, violating WCAG 1.3.1 (Info and Relationships).
Changes
idattribute to each category<h4>headingrole='group'andaria-labelledbyto each<ol>containing checkboxesVerification
aria-allowed-attr,aria-required-attr,aria-valid-attr-valueall passFixes Bug 2737338
I have verified this fix manually and it fixes the issue.