Skip to content
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

Action Menu can have its open state be controlled externally #1199

Merged
merged 12 commits into from
May 5, 2021

Conversation

VanAnderson
Copy link
Contributor

Just a small API change to optionally accept open and setOpen - if these props are present then the open/closed state of ActionMenu will be externally controlled.

Fixes https://github.com/github/primer/issues/135

@changeset-bot
Copy link

changeset-bot bot commented Apr 30, 2021

🦋 Changeset detected

Latest commit: b38f743

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/components Patch

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

@vercel
Copy link

vercel bot commented Apr 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-components/EeBKGKjYK7BXoiEqFzM5k9saA5Zn
✅ Preview: https://primer-compone-git-vananderson-action-menu-external-open-4162a5.vercel.app

@VanAnderson VanAnderson changed the title Action Menu can have its open state be a controlled externally Action Menu can have its open state be controlled externally Apr 30, 2021
@vercel vercel bot temporarily deployed to Preview April 30, 2021 17:51 Inactive
Copy link
Member

@dgreif dgreif left a comment

Choose a reason for hiding this comment

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

Nice pattern, I think we will want more of these 😄

src/stories/ActionMenu.stories.tsx Show resolved Hide resolved
src/ActionMenu.tsx Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview May 3, 2021 14:58 Inactive
@vercel vercel bot temporarily deployed to Preview May 3, 2021 15:27 Inactive
@VanAnderson VanAnderson force-pushed the VanAnderson/action-menu-external-open branch from c35d42d to 6f6d56b Compare May 3, 2021 15:48
@vercel vercel bot temporarily deployed to Preview May 3, 2021 15:48 Inactive
@vercel vercel bot temporarily deployed to Preview May 3, 2021 15:57 Inactive
src/ActionMenu.tsx Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview May 4, 2021 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview May 4, 2021 16:15 Inactive
@vercel vercel bot temporarily deployed to Preview May 4, 2021 18:00 Inactive
@vercel vercel bot temporarily deployed to Preview May 5, 2021 17:58 Inactive
@VanAnderson VanAnderson merged commit c9b4db7 into main May 5, 2021
@VanAnderson VanAnderson deleted the VanAnderson/action-menu-external-open branch May 5, 2021 19:18
@github-actions github-actions bot mentioned this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants