Skip to content

fix: avoid styled-jsx parsing SVG cursor styles#13

Open
tangly1024 wants to merge 1 commit into
sftbob:zeaubrefrom
tangly1024:codex/fix-endspace-styled-jsx-zeaubre
Open

fix: avoid styled-jsx parsing SVG cursor styles#13
tangly1024 wants to merge 1 commit into
sftbob:zeaubrefrom
tangly1024:codex/fix-endspace-styled-jsx-zeaubre

Conversation

@tangly1024

Copy link
Copy Markdown

Summary

  • Replace inline SVG style='filter: ...' inside Endspace cursor data URLs.
  • Keep the cursor shadow effect by drawing a second offset SVG path instead of embedding CSS inside the SVG.

Why

styled-jsx can misread the inline SVG style attribute inside a CSS url("data:image/svg+xml;...") value and fail the build with:

Nesting detected at 102:7. Unfortunately nesting is not supported by styled-jsx.

Flattening ordinary CSS selectors does not address this specific failure, because the parser is tripping over CSS text embedded in the SVG data URL.

Validation

  • Verified themes/endspace/style.js transforms successfully with next/babel and styled-jsx/babel.

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the sftbob's projects Team on Vercel.

A member of the Team first needs to authorize it.

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