Skip to content

Conversation

pksjce
Copy link
Contributor

@pksjce pksjce commented Apr 4, 2024

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

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Check out the new submenu story.

Merge checklist

@pksjce pksjce requested a review from a team as a code owner April 4, 2024 02:19
@pksjce pksjce requested a review from camertron April 4, 2024 02:19
Copy link

changeset-bot bot commented Apr 4, 2024

🦋 Changeset detected

Latest 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

Copy link
Contributor

github-actions bot commented Apr 4, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 88.97 KB (0%)
packages/react/dist/browser.umd.js 89.25 KB (0%)

@@ -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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops :)

Copy link
Member

@siddharthkp siddharthkp left a 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

@pksjce
Copy link
Contributor Author

pksjce commented Apr 18, 2024

I'm still waiting for this PR to get merged for this one to be viable.#4486

@broccolinisoup broccolinisoup removed their request for review April 22, 2024 00:28
@broccolinisoup
Copy link
Member

Removing myself from the reviewers for now, feel free to add back in when the manage to merge back the nested menus 🙌🏻

Copy link
Contributor

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.

@github-actions github-actions bot added the Stale label Jun 21, 2024
@github-actions github-actions bot closed this Jun 28, 2024
@github-actions github-actions bot deleted the action-bar-submenu branch June 28, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants