fix: Show message in mobile TOC when no headings in document
fix: MenuItem with level should still have background edge-to-edge
fix: Show developer warning when creating incorrect menu item type
* Add TOC button for mobile
* Undo NewDocumentMenu changes
* Place the toc button in the correct position.
* Pass menu props to menuitem
* Update app/menus/TableOfContentsMenu.js
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* Update app/menus/TableOfContentsMenu.js
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* Use the existing prop type
* Write menu inside actions prop
* Prevent blank webpage behaviour for toc
* Use href instead of level to determine target
* Update app/scenes/Document/components/Header.js
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* Add heading to menu items
* Use existing Heading component
Co-authored-by: Tom Moor <tom.moor@gmail.com>
- Makes menus fully accessible and keyboard driven
- Currently adds 2.8% to initial bundle size due to the inclusion of Reakit and its dependency, popperjs.
- Converts all menus to functional components
- Remove old custom menu system
- Various layout and flow improvements around the menus
closes#1766