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 external portalContainer in WithTooltip #291

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

kylesuss
Copy link
Collaborator

@kylesuss kylesuss commented Aug 17, 2021

On a current project, we need to render the tooltip somewhere other than just nested under the #root for z-index reasons. The library supports this, so I am adding the option to pass down a portalContainer DOM node.

📦 Published PR as canary version: 5.6.8-canary.291.aa01f64.0

✨ Test out this PR locally via:

npm install @storybook/design-system@5.6.8-canary.291.aa01f64.0
# or 
yarn add @storybook/design-system@5.6.8-canary.291.aa01f64.0

Copy link

@smithambera smithambera left a comment

Choose a reason for hiding this comment

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

👏🏻 makes sense to me! 👏🏻

@kylesuss kylesuss merged commit a0cae2f into master Aug 17, 2021
@kylesuss kylesuss deleted the tooltip-portal-container branch August 17, 2021 16:13
@github-actions
Copy link
Contributor

🚀 PR was released in v5.6.8 🚀

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.

2 participants