-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Components: Add Portal #28981
Components: Add Portal #28981
Conversation
Size Change: +28 B (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
e07ab3b
to
5e1316c
Compare
@sarayourfriend Hmm! I'm not sure why the |
@ItsJonQ I have... no idea how that happened... I'll fix it right away, sorry about that. |
51cc20e
to
5e1316c
Compare
@sarayourfriend No worries :D! I also updated the Portal test |
Will add a quick README now |
expect( | ||
document.querySelector( 'body .container .element' ) | ||
).toBeFalsy(); | ||
|
||
// Instead, it is rendered at the `body` level. | ||
expect( document.querySelector( 'body .element' ) ).toBeTruthy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
e21625c
to
7a321f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 from me!!
@sarayourfriend Could this PR be related to the error I reported here? https://wordpress.slack.com/archives/C02QB2JS7/p1613690151252200 Builds are failing on latest master for me. |
Sorry. Never mind. Just required a fresh npm install. |
Description
Adds a Portal component that wraps reakit's Portal with the ThemeProvider so that themes are correctly applied to portalled elements.
This PR also updates G2 to get fixes to the ThemeProvider props as well as the contextConnect function:
ItsJonQ/g2#263
ItsJonQ/g2#264
How has this been tested?
Unit tests pass
Types of changes
New feature
Checklist: