Fix accessibility issues in Connection Dialog - add proper ARIA labels and semantic structure #19651
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.
This PR addresses accessibility violations in the Connection Dialog's "Saved Connections" section where items lack proper names and roles for screen readers, violating WCAG 4.1.2 (Name, Role, Value).
Problem
The accessibility inspection tool revealed that connection items in the "Saved Connections" section had:
role="group"
without proper labelingSolution
Added proper ARIA attributes:
aria-label="Connect to {connectionName}"
on each connection cardaria-label="Delete saved connection for {connectionName}"
on delete buttonsrole="region"
andaria-labelledby
for section landmarksImproved semantic structure:
Tree
component that was addingrole="group"
without proper namingChanges Made
Accessibility Improvements
✅ Name: Each connection now announces "Connect to {connection name}"
✅ Role: Maintains appropriate
role="button"
for interactive elements✅ Value: Not applicable for these connection items
✅ Structure: Proper region landmarks with descriptive labels
✅ Consistency: Identical accessibility experience across both sections
Testing
Users should verify with screen readers that connection items now properly announce their purpose and delete buttons specify which connection they will remove.
Fixes #18654.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
update.code.visualstudio.com
/usr/local/bin/node ./out/test/unit/runTest.js
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.