mirror of
https://github.com/vector-im/element-web.git
synced 2026-07-02 21:40:11 +00:00
c33a159334
* Fix more menu focus issue when focused with no hover. * Use a js based solution for focus * Return focus to the menu trigger when closing the menu with Escape Keep the keyboard-focus marker set while a row/section-header menu is open (focus is then in the portaled popover, outside the element). This keeps the trigger revealed so the menu's own focus restoration lands on it when closed with Escape, instead of dropping to <body>. * test: cover keyboard-focus reveal of the room list hover menus Adds unit tests that focus a room row / section header via the keyboard (:focus-visible on mount) and assert the hover menu is revealed, then cleared when focus leaves. Brings diff coverage of the focus handlers to 100%.