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

Support ReactNode in ActionMenu.Overlay #2188

Merged
merged 4 commits into from
Aug 25, 2022

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Jul 26, 2022

Created from #2168 by @jdrush89

Describe your changes here.

Add support for ReactNode as the child type in ActionMenu.Overlay so that conditional children can be rendered within an overlay.
Closes #2067

Screenshots

No visual changes

Merge checklist

  • Added/updated tests - current testing doesn't seem granular enough to warrant testing every possible prop type, I can add a test if it seems necessary though.
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

* Supporting ReactNode type for ActionMenu children

* Fixing spacing

* Updating ActionMenu.Overlay props docs

* Adding changeset
@changeset-bot
Copy link

changeset-bot bot commented Jul 26, 2022

🦋 Changeset detected

Latest commit: 23ee0fe

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

This PR includes changesets to release 1 package
Name Type
@primer/react 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

@siddharthkp siddharthkp marked this pull request as ready for review July 26, 2022 14:20
@siddharthkp siddharthkp requested review from a team and pksjce July 26, 2022 14:20
@github-actions
Copy link
Contributor

github-actions bot commented Jul 26, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 75.63 KB (0%)
dist/browser.umd.js 76.24 KB (0%)

@siddharthkp siddharthkp removed the request for review from pksjce July 26, 2022 14:20
@siddharthkp siddharthkp temporarily deployed to github-pages July 26, 2022 14:24 Inactive
@siddharthkp
Copy link
Member Author

@jdrush89 A canary version is published for each commit

image

you can install this one by running npm install @primer/react@-.0.0-202262614251 in the repo you want to install like memex

@jdrush89
Copy link
Contributor

jdrush89 commented Aug 15, 2022

@siddharthkp I tested with the canary package in a memex codespace and all looks good, I'm able to specify false and null as Overlay children and everything's working as expected.

@siddharthkp
Copy link
Member Author

That's perfect! I'll merge this tomorrow and add it to the next release :)

@siddharthkp siddharthkp temporarily deployed to github-pages August 16, 2022 11:02 Inactive
@siddharthkp siddharthkp temporarily deployed to github-pages August 16, 2022 11:15 Inactive
@colebemis colebemis enabled auto-merge (squash) August 25, 2022 17:47
@colebemis colebemis temporarily deployed to github-pages August 25, 2022 17:56 Inactive
@colebemis colebemis merged commit 8fc2e42 into main Aug 25, 2022
@colebemis colebemis deleted the support-reactnode-in-actionmenu branch August 25, 2022 18:00
@primer-css primer-css mentioned this pull request Aug 25, 2022
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.

ActionMenu.Overlay should accept false and null as children
4 participants