Skip to content

sort columns with the keyboard#152

Merged
severo merged 49 commits intomasterfrom
sort-with-keyboard
May 10, 2025
Merged

sort columns with the keyboard#152
severo merged 49 commits intomasterfrom
sort-with-keyboard

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented May 6, 2025

severo added 30 commits May 5, 2025 22:40
Note that we remove the unused top pending state
@severo severo changed the title let sort columns with the keyboard sort columns with the keyboard May 6, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds keyboard support to column header interactions for sorting columns.

  • Replace mouse event handling with keyboard events in the onClick prop.
  • Introduce an onKeyDown handler to capture Enter and Space keys for sorting actions.
  • Update tests to verify that the header responds to keyboard events.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/ColumnHeader/ColumnHeader.tsx Updated onClick signature and added onKeyDown event handling.
src/components/ColumnHeader/ColumnHeader.test.tsx Added tests for keyboard-triggered click events.

Comment thread src/components/ColumnHeader/ColumnHeader.tsx
Comment thread src/components/ColumnHeader/ColumnHeader.test.tsx
Base automatically changed from navigate-through-keyboard to master May 10, 2025 07:48
@severo severo merged commit 2b1a2a2 into master May 10, 2025
10 checks passed
@severo severo deleted the sort-with-keyboard branch May 10, 2025 07:53
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.

3 participants