Skip to content

fix: implement focus trap in McpConfigPreviewDialog#481

Merged
claude[bot] merged 1 commit intomainfrom
fix/473-focus-trap-mcp-dialog
Mar 20, 2026
Merged

fix: implement focus trap in McpConfigPreviewDialog#481
claude[bot] merged 1 commit intomainfrom
fix/473-focus-trap-mcp-dialog

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Mar 20, 2026

Summary

  • Adds Tab/Shift+Tab focus cycling within McpConfigPreviewDialog so keyboard focus no longer escapes to the background
  • Satisfies the aria-modal="true" contract and WCAG 2.4.3 (Focus Order)

Closes #473

Test plan

  • Open MCP Config Preview dialog in Settings
  • Press Tab repeatedly — focus should cycle from last button back to first focusable element
  • Press Shift+Tab on first element — focus should wrap to last button
  • Verify Escape and Enter still work as before

🤖 Generated with Claude Code

Tab/Shift+Tab now cycles within the dialog instead of escaping to
the background, satisfying the aria-modal="true" contract and
WCAG 2.4.3 (Focus Order).

Closes #473

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@claude claude bot enabled auto-merge (squash) March 20, 2026 09:39
@claude claude bot merged commit 1c268de into main Mar 20, 2026
3 checks passed
@xiaolai xiaolai deleted the fix/473-focus-trap-mcp-dialog branch March 20, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[audit] accessibility: McpConfigPreviewDialog has no focus trap — Tab escapes to background

0 participants