Commit Graph

4 Commits (b2a1a409613d0479cbf1b15498c6f69bd64cf173)

Author SHA1 Message Date
Travis Ralston bf28993509 appease the js-doc linter
hopefully
2019-05-21 09:33:52 -06:00
Travis Ralston 52b0f285c6 Add some clarifying comments 2019-05-20 21:07:12 -06:00
Travis Ralston 332f716ce4 The linter will be the death of me 2019-05-17 15:36:28 -06:00
Travis Ralston 2a187810fd Restructure TopLeftMenu for accessibility and autofocus it
We use a trick with refs to automatically focus the element, also making use of mx_HiddenFocusable to hide the unnecessary outline. 

The menu itself has been restructured to hide some elements from screen readers (reduce noise) and to have a single unordered list. Screen readers mention when the user "enters" a list, and each item was previously saying "enter list <action>" when it should have just been "<action>".

By focusing automatically, the keyboard can be used to go up/down the menu as may be expected by keyboard users.
2019-05-17 15:32:03 -06:00