torchbox / django-pattern-library

UI pattern libraries for Django templates
https://torchbox.github.io/django-pattern-library/
BSD 3-Clause "New" or "Revised" License
360 stars 44 forks source link

Make it possible to navigate the menu with the keyboard. Fix #202 #207

Closed chris-lawton closed 1 year ago

chris-lawton commented 1 year ago

Description

Currently the pattern library uses the menu item heading tags to listen for events which open and close their child menus. This is not accessible for users who navigate via keyboard only.

This MR resolves that by changing the menu item elements to buttons. In turn it also resolves https://github.com/torchbox/django-pattern-library/issues/202.

It also:

Fixes #202

Checklist