fix(flow): render connectors in Firefox#553
Open
geoquant wants to merge 2 commits into
Open
Conversation
commit: |
Contributor
Docs PreviewCommit: |
nandanmen
approved these changes
May 29, 2026
Contributor
Visual Regression Report — 0 changed, 11 unchangedNo visual changes detected. |
Collaborator
Author
|
/bonk |
Contributor
PR #553 SummaryTitle: fix(flow): render connectors in Firefox What changedThis PR fixes a bug where Flow connector SVG paths were invisible in Firefox.
Testing
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix Flow connector rendering in Firefox by emitting valid SVG path strings for rounded connector segments.
The previous implementation nested arrays in the command list, which serialized SVG path commands with commas between command tokens. Chromium tolerated this, but Firefox stopped rendering the curved connector paths after the invalid comma boundary.
This also sets
overflow="visible"on the root connector SVG as an SVG presentation attribute, matching the existing Tailwind class in a Firefox-safe way.Before / After
Firefox before
Firefox after
Testing
pnpm --filter @cloudflare/kumo exec vitest run --project=unit src/components/flow/flow.test.tsxpnpm --filter @cloudflare/kumo exec vitest --config=vitest.browser.config.ts run src/components/flow/flow.browser.test.tsxpnpm --filter @cloudflare/kumo exec oxlint src/components/flow/connectors.tsx src/components/flow/flow.test.tsxManual Playwright verification against
http://localhost:4323/components/flowin Firefox and Chromium:pathCount: 6,commaCount: 0,curvedHeights: [64, 64, 120, 120]pathCount: 6,commaCount: 0,curvedHeights: [54, 54, 108, 108]Reviews
bonk has reviewed the change
automated review not possible because: this is a targeted browser rendering fix verified locally in Firefox and Chromium
Tests
Tests included/updated
Automated tests not possible - manual testing has been completed as follows: local Firefox and Chromium verification on the Flow docs page
Additional testing not necessary because: targeted SVG path serialization change covered by unit and browser tests