SVG ID conflict #10946
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Referenced SVG elements conflict when rendering multiple SVG images as React components.
This is because minifying SVG images can result in duplicate element IDs.
SVG elements in the second or later SVG images are hidden by the first.
Reproducible demo
https://stackblitz.com/edit/github-cf8uy1ck?file=src%2Fpages%2Findex.md
Steps to reproduce
Expected behavior
All SVG elements have unique IDs and SVG images are displayed as same as when alone.
Actual behavior
Some elements are hidden or have a different style when SVG element IDs conflict.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: