-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collapse main menu options in a hamburger menu (#489)
* Make menubar responsive * Add review changes * Use cached item sizes * Invalidate cached item sizes in onUpdateRequest * Add review changes * Move logic to onUpdateRequest * Remove redundant initialization * Initialize overflowIndex and add submenus in the correct order * Create interface in renderer and change updateOverflowIndex as a private function * Get elements by children nodes without their classname * Collapse logic to reduce code complexity * Undo dedicated IRenderer and add overflowMenuOptions * Fix double menu bug * Add test to check the hamburger menu is rendering * Test that the overflow menu renders and hides * Update API documentation * Update packages/widgets/src/menubar.ts * Break test into two to avoid having two animation frames --------- Co-authored-by: krassowski <5832902+krassowski@users.noreply.github.com> Co-authored-by: Afshin T. Darian <git@darian.email> Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
- Loading branch information
1 parent
79049b4
commit ca76204
Showing
4 changed files
with
230 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.