Imported SVGs incorrectly share the same fill definitions #10357
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
I've imported 3 SVGs, and it would appear the fill color definition is used across the SVGs, if that fill has the same id, even though the svg files themselves don't share the same id.
Reproducible demo
See demo
Steps to reproduce
It appears that they all get a fill defined as
fill="url(#a)"
, even though this is not the name of the fill in the original svg in the img folder. Maybe that's the reason? That id is then shared by all components on the page?Expected behavior
They shouldn't share colors.
Actual behavior
The fill used across SVGs is the fill of the first SVG used on the page.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: