mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Add role="button" to make the component report itself as a button. Add tabindex so the menu toggle can receive keyboard focus. Add keydown handlers for `<Enter>` and `<Space>` so the dropdown menu toggle responds to keyboard input. Set the aria-pressed attribute to true if the menu is open, or false if it is closed.
2.1 KiB
2.1 KiB