Skip to content

Keyboard navigation of the language picker needs improvement #189

@Almost-Senseless-Coder

Description

@Almost-Senseless-Coder

Bug Report

Environment

Zola version: 0.17.2
tabi commit: latest

Expected Behavior

As per definition of the menu pattern, the following hould happen:

  • Clicking the menu button should move keyboard focus to the first keybaord accessible menu item,
  • up/down arrow keys should move keyboard focus to the previous/next keyboard accessible menu item,
  • Keyboard focus should get trapped in the menu as long as it remains open,
  • Escape should move focus back to the menu button and hide the menu again.

Current Behavior

The menu only can get navigated using tab, which works, but is unusual.

Step to Reproduce

Navigate to the language picker by keyboard using the tab key and hit enter/space to activate it. Keyboard focus will remain in place. Press tab to move to the first menu item. Hit up/down arrow keys. Nothing will happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions