Skip to content

feat(dropdown): add keyboard navigation (#842)#1011

Closed
wanchun wants to merge 1 commit into
chore/test-infrafrom
fix/issue-842-v2
Closed

feat(dropdown): add keyboard navigation (#842)#1011
wanchun wants to merge 1 commit into
chore/test-infrafrom
fix/issue-842-v2

Conversation

@wanchun

@wanchun wanchun commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #842

Adds keyboard navigation to FDropdown menu items.

Implementation:

  • dropdown.tsx: Added activeIndex state, getNextValidIndex helper, handleKeydown handler. ArrowDown/ArrowUp move focus between items (with wraparound), Enter activates the active item, Escape closes the dropdown
  • style/index.less: Added .is-active style matching hover background
  • 2 vitest tests for ArrowDown navigation and Enter activation

Files changed: 3. No lockfile. No test-infra changes.

@wanchun

wanchun commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Closed as part of v3 rebuild from chore/test-infra. Original v1/v2 PRs being superseded by clean re-implementation (vitest + playwright + docs).

@wanchun wanchun closed this Jun 4, 2026
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.

1 participant