Skip to content

♻️(frontend) Use React Aria FocusScope for side panel accessibility#988

Open
Ovgodd wants to merge 2 commits intomainfrom
refactor/side-panel-react-aria-overlay
Open

♻️(frontend) Use React Aria FocusScope for side panel accessibility#988
Ovgodd wants to merge 2 commits intomainfrom
refactor/side-panel-react-aria-overlay

Conversation

@Ovgodd
Copy link
Copy Markdown
Collaborator

@Ovgodd Ovgodd commented Feb 20, 2026

Purpose

Replace custom focus hooks with React Aria primitives for side panel accessibility.

Proposal

  • Add role="dialog", aria-labelledby, aria-hidden and Escape to close
  • Add FocusScope contain for Tab containment and focus restore on close
  • Centralize focus management in SidePanel, remove useRestoreFocus from Chat and Tools
  • Allow Escape key to propagate from ChatInput to close the side panel

@Ovgodd Ovgodd requested a review from lebaudantoine February 20, 2026 15:07
@Ovgodd Ovgodd self-assigned this Feb 20, 2026
@Ovgodd Ovgodd added the a11y label Feb 20, 2026
@Ovgodd Ovgodd changed the title wip Use React Aria FocusScope for side panel accessibility Feb 20, 2026
@Ovgodd Ovgodd changed the title Use React Aria FocusScope for side panel accessibility ♻️(frontend) Use React Aria FocusScope for side panel accessibility Feb 20, 2026
leverage FocusScope for tab containment, escape and focus restore
@Ovgodd Ovgodd force-pushed the refactor/side-panel-react-aria-overlay branch from e9869bc to 4748b55 Compare February 20, 2026 15:08
@Ovgodd Ovgodd marked this pull request as ready for review February 20, 2026 15:10
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve keyboard accessibility for menus (Escape + focus management)

1 participant