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

Modal global fix #95

Merged
merged 1 commit into from
Apr 26, 2019
Merged

Modal global fix #95

merged 1 commit into from
Apr 26, 2019

Conversation

daigof
Copy link
Contributor

@daigof daigof commented Apr 26, 2019

  • I review the code in action (I am refactoring to Radiance modal in PocketDerm)and We need to revert back to its original for regarding Global style to prevent this issue
    image

  • The way The Radiance Modal is now does not work and do nothing: the style applied to ModalContainer does not reach the .ReactModalPortal element because they are disconnected in runtime (modal is created on the fly below in the dom tree)

  • According to Emotion docs, the global style injection is harmless and unmounts when the component does so. I tested and the global style does not get injected multiple times when opening the modal more than once so there is no memory leaks: https://emotion.sh/docs/globals

@daigof daigof merged commit 2400b7d into master Apr 26, 2019
@daigof daigof deleted the modal-global-fix branch April 26, 2019 20:24
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.

2 participants