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

ChakraUI forgetting stylization #61

Closed
mariosantosdev opened this issue Mar 9, 2023 · 2 comments
Closed

ChakraUI forgetting stylization #61

mariosantosdev opened this issue Mar 9, 2023 · 2 comments

Comments

@mariosantosdev
Copy link

I'm using ChakraUI to styles my application. I follow the example of react-bootrstap but when the dialog is open the stylization of ChakraUI forgot. I think it's caused because the Portal.

@mariosantosdev mariosantosdev changed the title Dimiss style of ChakraUI ChakraUI forgetting stylization Mar 9, 2023
@haradakunihiko
Copy link
Owner

haradakunihiko commented Mar 14, 2023

@mariosantosdev
I'm not very familiar with Chakra UI, but it seems to use context based on what I see on https://chakra-ui.com/.
Currently, we can't use context with react-confirm. However, it is planned to be improved in #60, but it may take another one or two weeks until the release.

If you want to try it before then, try npm install [email protected]:haradakunihiko/react-confirm.git#feature/implement-to-use-context. See https://github.com/haradakunihiko/react-confirm/blob/4a55a0b0bc120639931312ff030304bc93d8f64f/README.md#using-with-context for detail.

Putting MountPoint under ChakarProvider tree may fix your issue.
I would appreciate it if you could try and provide me with your feedback!

@mariosantosdev
Copy link
Author

Thanks @haradakunihiko. I guess it's better to wait until the release.

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

No branches or pull requests

2 participants