Skip to content

♻️(frontend) use react aria toolbar for arrow key navigation#1005

Open
Ovgodd wants to merge 4 commits intomainfrom
refactor/reaction-toolbar-arrow-navigation
Open

♻️(frontend) use react aria toolbar for arrow key navigation#1005
Ovgodd wants to merge 4 commits intomainfrom
refactor/reaction-toolbar-arrow-navigation

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Feb 23, 2026

Purpose

Follow WAI-ARIA toolbar pattern for emoji reactions: arrow keys to navigate, Tab to dismiss.

Proposal

  • Replace div[role=toolbar] + FocusScope contain with React Aria Toolbar (roving tabindex)
  • Tab closes the toolbar and restores focus to the trigger instead of trapping
  • ctrl shift E refocus on first emoji when the toolbar is already open

@Ovgodd Ovgodd requested a review from lebaudantoine February 23, 2026 13:46
@Ovgodd Ovgodd self-assigned this Feb 23, 2026
@Ovgodd Ovgodd added the a11y label Feb 23, 2026
@Ovgodd Ovgodd force-pushed the refactor/reaction-toolbar-arrow-navigation branch from 1337d27 to 0c972f8 Compare February 23, 2026 13:47
@Ovgodd Ovgodd marked this pull request as ready for review February 23, 2026 13:47
@Ovgodd Ovgodd force-pushed the refactor/reaction-toolbar-arrow-navigation branch from 0c972f8 to 926e9cc Compare February 23, 2026 13:48
@Ovgodd Ovgodd force-pushed the refactor/reaction-toolbar-arrow-navigation branch from 641175f to f40ca27 Compare February 24, 2026 08:36
- ✨(frontend) introduce a shortcut settings tab #975
- 🚚(frontend) rename "wellknown" directory to "well-known" #1009
- 🌐(frontend) localize SR modifier labels #1010
- ♻️(frontend) use react aria toolbar for arrow key navigation #1005
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something weird there.

@Ovgodd Ovgodd requested a review from lebaudantoine February 24, 2026 14:57
replace focus trap with roving tabindex following WAI-ARIA toolbar pattern
allow keyboard shortcut to return focus to the emoji toolbar without closing it
@Ovgodd Ovgodd force-pushed the refactor/reaction-toolbar-arrow-navigation branch from cf39a7b to 744b7c4 Compare February 25, 2026 07:25
@Ovgodd Ovgodd force-pushed the refactor/reaction-toolbar-arrow-navigation branch 2 times, most recently from db7a90d to eee4fbc Compare February 25, 2026 14:58
@sonarqubecloud
Copy link

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.

2 participants