-
Notifications
You must be signed in to change notification settings - Fork 16
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
Help with Portfonio + Mantine CSS #21
Comments
You are probably running into Portfolio's by now most famous shortcoming. Portfolio assumes that components are free of side-effects, and calls the component function in one browser window, but renders the result into an iframed document. If your component either has side-effects during the component function call, or it uses There is a sketch for a fix here, I'm pretty sure it will fix your problem: #16 I'm a little behind in processing that PR, but will get to it shortly. |
I've looked a bit into this and made it work by adding a custom canvas with forced light theme |
Thanks @vloth, that fixed the problem :) |
Hey, first of all, thanks for this tool it will help a lot and is a missing (updated) piece in the cljs ecosystem.
I'm trying to set it up to work with mantine component library, but It uses a wrapper component called MantineProvider to handle themes and CSS stuff.
And even wrapping my component with it on the
defscene
, it looks like is not able to do all the CSS changes it does in a normal app.Normal app:

Portfolio:

Other than that all components, apart from the visuals are working as they should.
I've made a sample repo to help you to see this happening:
https://github.com/rafaeldelboni/helix-jsdom-portfolio-mantine
My question is, is there a way to declare a root component to defscene run all components inside of it? Because this bug can happen in a normal app, if you add mantine css, but do not use the
MantineProvider
, so looks like theMantineProvider
in thedefscene
is conflicting with some wrap portfolio may be doing.The text was updated successfully, but these errors were encountered: