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
[Bug] New styles from #339 cause issues for components added to body #343
Labels
bug
Something isn't working
Comments
ChrisW-B
changed the title
[Bug] New styles from #339 cause issues for portaled components
[Bug] New styles from #339 cause issues for components added to body
Apr 19, 2022
Hmm, thanks. I'll need to go back to the drawing board it sounds like. |
We do have the same problem, i tried the suggested fix from #346 and it works in our case. |
@IanVS perfect, thank you! |
IanVS
added a commit
that referenced
this issue
Apr 22, 2022
Fixes #343 This replaces the blunt hammer of ```css body > * { display: none !important; } ``` with something a bit more nuanced, taken from the storybook default head styles. This is only necessary until vitejs/vite#7786 is released, then we can remove the workaround and ask users to update vite in order to avoid this flash.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The style rule added to prevent FOUC hides all direct children of the body, which means elements appended to the body no longer display. This means things such as the radix-ui drawer component are no longer visible in Storybook.
This seems to be a result of
Steps to reproduce the behavior
#root
display: none !important
on its root elementExpected behavior
Element should be visible.
Screenshots and/or logs
Environment
The text was updated successfully, but these errors were encountered: