Dynamic SVGs append to DOM but are not visible #44513
Unanswered
stephenavocado
asked this question in
Help
Replies: 2 comments 4 replies
-
Got more debugging information? What happens if you set widths on the surrounding area? Are all CSS resets, normalizers the same? EditThere was some global CSS affecting the SVG's. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are no changes between the two code bases, which is what is making it very confusing! Hmm, what do you mean by setting widths on the surrounding area? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've built a tool in CodeSandbox that I am transferring to my Nextjs blog deployed on vercel. The tool uses react-xarrows to generate svg arrows between elements.
From the dev tools screenshot below, you can see that they svgs are being generated but are not visible on screen.
The expected behavior is shown in the below screenshot from the CodeSandbox version:
I assume this has to do with how Nextjs handles svgs, but I am unsure of how to address the issue. Any thoughts would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions