Skip to content

uniquifyIDs does not update ids used in styles #246

@markwoon

Description

@markwoon

Describe the bug

uniquifyIDs updates ids so that they are unique, but does not update the ids used in <style /> within the <svg /> to those styles break.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/thirsty-andras-pndn4x?workspaceId=ws_42yn2BgNcv6adRUUFDoBVJ

Steps to reproduce

  1. Look at codesandbox.
  2. Should see "X", but only see ""

Expected behavior

Should see "X"

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

No response

react-inlinesvg version

4.2.0

TypeScript version

Build tool

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions