Skip to content
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

LinearGradient id for svg icons are not unique #10647

Closed
6 of 7 tasks
GurovDmitriy opened this issue Nov 6, 2024 · 1 comment
Closed
6 of 7 tasks

LinearGradient id for svg icons are not unique #10647

GurovDmitriy opened this issue Nov 6, 2024 · 1 comment
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

Comments

@GurovDmitriy
Copy link

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

LinearGradient id for svg icons are not unique.

Icons that use a gradient id must have a unique linearGradient id

<linearGradient id="uniq-id" ... gradientUnits="userSpaceOnUse">
    <stop offset="0" stop-color="#e13fff"/>
    <stop offset=".09" stop-color="#c640fa"/>
 //...
 <path fill="url(#uniq-id)" fill-rule="evenodd" d...

after assembly or in development mode, ids look like a, b, c within one icon, that is, if you use several icons on a page, their gradients will intersect.
this happens when using inline icons

Reproducible demo

No response

Steps to reproduce

1 Icons should have gradients and linearGradient id with links to them.
2 Import icons into the project and use inline.

Expected behavior

linearGradient id should not be modified or should be done correctly, there should not be the same id between different icons

Actual behavior

linearGradient id of icons looks like a,b,c and is repeated between different icons

Your environment

No response

Self-service

  • I'd be willing to fix this bug myself.
@GurovDmitriy GurovDmitriy added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Nov 6, 2024
@Josh-Cena
Copy link
Collaborator

Duplicate of #8297

@Josh-Cena Josh-Cena marked this as a duplicate of #8297 Nov 6, 2024
@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2024
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants