-
Notifications
You must be signed in to change notification settings - Fork 628
ActionBar: Add new component for submenu #4462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 366d598 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
@@ -13,7 +13,8 @@ import {useOnOutsideClick} from '../../hooks/useOnOutsideClick' | |||
import type {IconButtonProps} from '../../Button' | |||
import {IconButton} from '../../Button' | |||
import Box from '../../Box' | |||
import {ActionMenu} from '../..' | |||
import {ActionMenu} from '../../ActionMenu' | |||
import {Action} from 'history' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than linting errors, looks good.
What are your thoughts on the name: just ActionBar.Menu
instead of ActionBar.SubMenu
?
Approving in advance coz experimental component
I'm still waiting for this PR to get merged for this one to be viable.#4486 |
Removing myself from the reviewers for now, feel free to add back in when the manage to merge back the nested menus 🙌🏻 |
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days. |
Closes #https://github.com/github/primer/issues/3132
This makes use of new capability in ActionMenu to have Submenus. We can use it to make sure that menus are supported with IconButton trigger in the ActionBar. The intent is to be able to convert it into a SubMenu when the overflow behaviour kicks in.
New
Screen.Recording.2024-04-04.at.1.17.10.PM.mov
Rollout strategy
Testing & Reviewing
Check out the new submenu story.
Merge checklist