Skip to content

fix(desktop): make the channel menu button keyboard accessible (#1593) - #3731

Draft
ninahorne wants to merge 3 commits into
TryQuiet:developfrom
ninahorne:fix/1593-channel-deletion-a11y
Draft

ninahorne wants to merge 3 commits into
TryQuiet:developfrom
ninahorne:fix/1593-channel-deletion-a11y

Conversation

@ninahorne

@ninahorne ninahorne commented Dec 4, 2026 •

Copy link
Copy Markdown

Summary

  • Fixes Button that opens settings for channel deletion is not keyboard accessible #1593
  • The "..." icon in the ChannelHeader was not keyboard focusable. It only used a Grid element with an onClick handler so was unreachable by keyboard nav. This PR changes it to use the IconButton component which gives it button semantics.
  • Additionally, to comply with a11y, when closing the ContextMenu, focus should return to the trigger, so this PR also adds functionality for resetting the focus to the trigger element whenever a ContextMenu is closed. I'm not sure why this behavior wasn't handled by default with MUI.

Pull Request Checklist

  • I have linked this PR to a related GitHub issue.
  • I have added a description of the change (and Github issue number, if any) to the root CHANGELOG.md.

Nina Horne added 3 commits December 4, 2026 17:35
…et#1593

- Render the channel header's "⋯" menu trigger as a real button with an
  accessible name ("Channel menu"), so it can be reached with Tab and
  opened with Enter.
- Return focus to whatever opened a context menu once it has closed.
- Add tests for keyboard access and focus return, and fix a stray
  setTimeout in the existing "deletes channel" test that asserted after
  the test had finished.

This branch has not been deployed

No deployments
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.

Button that opens settings for channel deletion is not keyboard accessible

1 participant