Skip to content

fix: convert fill-opacity to fillOpacity in React SVG parser#1015

Open
alexaperador wants to merge 1 commit into
pheralb:mainfrom
alexaperador:fix/supabase-fill-opacity
Open

fix: convert fill-opacity to fillOpacity in React SVG parser#1015
alexaperador wants to merge 1 commit into
pheralb:mainfrom
alexaperador:fix/supabase-fill-opacity

Conversation

@alexaperador

Copy link
Copy Markdown

Summary

This PR adds the missing fill-opacityfillOpacity attribute mapping when converting SVGs to React components.

Without this mapping, SVGs using the fill-opacity attribute (such as the Supabase logo) generate invalid JSX.

Changes

  • Add fill-opacityfillOpacity to the React SVG attribute mappings.

Example

Before:

<path fill-opacity="0.2" />

After:

<path fillOpacity="0.2" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant