Skip to content

Fix: Add accessible labels to ToggleControl in connector approval matrix #634

@Trushiv04

Description

@Trushiv04

Description

The ToggleControl components in ApprovalMatrixCard.tsx are rendered with an empty label="" prop. This causes WCAG 2.1 AA violations as screen readers cannot announce the purpose of each checkbox.

Steps to Reproduce

  1. Navigate to Tools → AI → Connector Approval (/wp-admin/tools.php?page=ai-connector-approval)
  2. Inspect the toggle checkboxes in the approval matrix table
  3. Observe that each checkbox has an empty label

Expected Behavior

Each toggle should have a descriptive accessible label indicating which caller and connector it controls.

Actual Behavior

Each <input type="checkbox"> renders with an empty <label> — screen readers cannot announce the purpose of the toggle.

Proposed Fix

I have a working fix ready for this issue — it addresses the screen reader support on the Connectors screen. I can share a brief outline or open a PR once the approach is confirmed.

Before Fix Applied
Image

After Fix Applied
Image

References

  • WCAG 2.1 SC 1.3.1 Info and Relationships
  • WCAG 2.1 SC 4.1.2 Name, Role, Value
  • Affected file: src/experiments/connector-approval/components/ApprovalMatrixCard.tsx

Metadata

Metadata

Assignees

Labels

[Type] BugSomething isn't working

Type

No fields configured for Bug.

Projects

Status
Needs review

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions