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

Anchored overlay can take an external AnchorRef #1266

Merged
merged 25 commits into from
Jun 10, 2021

Conversation

VanAnderson
Copy link
Contributor

This PR allows for more flexible relationships between anchor and overlay by allowing a user to supply their own external AnchorRef.

@changeset-bot
Copy link

changeset-bot bot commented May 28, 2021

🦋 Changeset detected

Latest commit: 9999c12

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 May 28, 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/4Sk7ocYfeawVWJqTnBw5dqwzncUv
✅ Preview: https://primer-components-git-vananderson-anchored-overla-f1836a-primer.vercel.app

@vercel vercel bot temporarily deployed to Preview May 28, 2021 15:13 Inactive
@VanAnderson VanAnderson force-pushed the VanAnderson/anchored-overlay-tweaks branch from 0fd5278 to 4bf2ea4 Compare May 28, 2021 15:19
@vercel vercel bot temporarily deployed to Preview May 28, 2021 15:19 Inactive
@vercel vercel bot temporarily deployed to Preview May 28, 2021 15:22 Inactive
@VanAnderson VanAnderson force-pushed the VanAnderson/anchored-overlay-tweaks branch from 36b108f to 1f3c2bc Compare May 28, 2021 15:22
@vercel vercel bot temporarily deployed to Preview May 28, 2021 15:25 Inactive
@vercel vercel bot temporarily deployed to Preview May 28, 2021 16:03 Inactive
@vercel vercel bot temporarily deployed to Preview May 28, 2021 19:36 Inactive
@vercel vercel bot temporarily deployed to Preview May 28, 2021 19:40 Inactive
@vercel vercel bot temporarily deployed to Preview May 28, 2021 19:45 Inactive
@vercel vercel bot temporarily deployed to Preview May 28, 2021 20:31 Inactive
@vercel vercel bot temporarily deployed to Preview June 1, 2021 20:12 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.

Great changes! I think there will be many use cases for external anchors, and I like this approach.

src/ActionMenu.tsx Outdated Show resolved Hide resolved
src/AnchoredOverlay/AnchoredOverlay.tsx Show resolved Hide resolved
src/AnchoredOverlay/AnchoredOverlay.tsx Outdated Show resolved Hide resolved
src/AnchoredOverlay/AnchoredOverlay.tsx Outdated Show resolved Hide resolved
src/stories/Overlay.stories.tsx Outdated Show resolved Hide resolved
src/stories/RefAnchoredOverlay.stories.tsx Outdated Show resolved Hide resolved
src/stories/RefAnchoredOverlay.stories.tsx Outdated Show resolved Hide resolved
Co-authored-by: Dusty Greif <dgreif@users.noreply.github.com>
@vercel vercel bot temporarily deployed to Preview June 3, 2021 19:27 Inactive
@vercel vercel bot temporarily deployed to Preview June 3, 2021 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview June 3, 2021 19:50 Inactive
@vercel vercel bot temporarily deployed to Preview June 3, 2021 20:35 Inactive
@VanAnderson VanAnderson requested a review from dgreif June 4, 2021 20:25
@vercel vercel bot temporarily deployed to Preview June 8, 2021 18:29 Inactive
@VanAnderson VanAnderson force-pushed the VanAnderson/anchored-overlay-tweaks branch from 4125232 to c265aa6 Compare June 8, 2021 18:50
@vercel vercel bot temporarily deployed to Preview June 8, 2021 18:50 Inactive
@vercel vercel bot temporarily deployed to Preview June 8, 2021 19:45 Inactive
@vercel vercel bot temporarily deployed to Preview June 8, 2021 19:51 Inactive
@vercel vercel bot temporarily deployed to Preview June 9, 2021 19:20 Inactive
@vercel vercel bot temporarily deployed to Preview June 10, 2021 15:25 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.

Looks good!

@VanAnderson VanAnderson enabled auto-merge (squash) June 10, 2021 21:46
@vercel vercel bot temporarily deployed to Preview June 10, 2021 21:47 Inactive
@VanAnderson VanAnderson merged commit 321b9a3 into main Jun 10, 2021
@VanAnderson VanAnderson deleted the VanAnderson/anchored-overlay-tweaks branch June 10, 2021 21:55
@github-actions github-actions bot mentioned this pull request Jun 10, 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.

3 participants