Commit graph

8 commits

Author SHA1 Message Date
Thibaut Girka
9b879b6931 Fix page incorrectly scrolling when bringing up dropdown menus 2021-08-28 15:38:51 +02:00
Thibaut Girka
7b7808defe Fix and refactor keyboard navigation in dropdown menus 2021-08-28 15:37:53 +02:00
Thibaut Girka
11057970ef Improve focus handling with dropdown menus
- Focus first item when activated via keyboard
- When the dropdown menu closes, give back the focus to
  the actual element which was focused prior to opening the menu
2021-08-28 15:23:05 +02:00
Thibaut Girka
64665df236 Improve dropdown menu keyboard navigation
* Allow selecting menu items with the space bar in status dropdown menus

* Fix modals opened by keyboard navigation being immediately closed

* Fix menu items triggering modal actions

* Add Tab trapping inside dropdown menu

* Give focus back to last focused element when status dropdown menu closes
2021-08-28 15:22:43 +02:00
Alex Gleason
32b3173604
Set href for menu items with to 2021-03-29 23:29:16 -05:00
Alex Gleason
db201707bf
Middle-click account to open it in a new tab, fixes #603 2021-03-29 23:22:54 -05:00
Sean King
285261aad9
Update imports and listenerOptions for components using detect-passive-events 2020-10-15 08:10:45 -06:00
Alex Gleason
d24dcb3e60
gabsocial --> soapbox paths 2020-05-28 17:56:55 -05:00
Renamed from app/gabsocial/components/dropdown_menu.js (Browse further)