-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for nested submenus to
ActionMenu
(#4386)
* Close parent stack when an item is picked * Add `MenuItemAnchor` component * Close submenus when left arrow is pressed * Align submenus to the right of anchors * Add story * Fix open on right arrow key * Add unit tests * Move story and improve * Create actionmenu-submenus.md * Update .changeset/wild-students-bow.md * Refactor * Replace `MenuItemAnchor` with auto wiring for `ActionList.Item` * Use context instead of manipulating children * Update packages/react/src/ActionMenu/ActionMenu.docs.json Co-authored-by: Armağan <broccolinisoup@github.com> * Add wrapped component to storybook example * Fix changeset * Fix default trailing visual styling * Revert "Add wrapped component to storybook example" This reverts commit 5ac52c8. * Don't render the trailing visual wrapper unless there actually is a default * Fix submenu anchor closing menu on `Enter` press --------- Co-authored-by: Armağan <broccolinisoup@github.com>
- Loading branch information
1 parent
a3355a5
commit 4e281b2
Showing
7 changed files
with
347 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": minor | ||
--- | ||
|
||
Adds support for nested submenus to `ActionMenu` |
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
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.