Skip to content

fix #260 - bug: Start/End node styles reference unavailable Tailwind CSS variables inside Shadow DOM#261

Open
fantonangeli wants to merge 2 commits into
open-workflow-specification:mainfrom
fantonangeli:issue-260-bug-Start/End-node-styles-reference-unavailable-Tailwind-CSS-variables-inside-Shadow-DOM
Open

fix #260 - bug: Start/End node styles reference unavailable Tailwind CSS variables inside Shadow DOM#261
fantonangeli wants to merge 2 commits into
open-workflow-specification:mainfrom
fantonangeli:issue-260-bug-Start/End-node-styles-reference-unavailable-Tailwind-CSS-variables-inside-Shadow-DOM

Conversation

@fantonangeli

Copy link
Copy Markdown
Member

Closes #260

Describe the Bug

Some Start/End node styles reference CSS variables that are not available when the Diagram Editor is embedded inside a Shadow DOM host using Web Components.

Observed examples include missing Tailwind internal variables such as --tw-border-style.

How to test:

  1. Build @serverlessworkflow/diagram-editor.
  2. Embed the Diagram Editor in a Shadow DOM host application.
  3. Load the generated dist/styles.css inside the shadow root.
  4. Render a workflow containing Start/End nodes.
  5. Start/End nodes have the expected border styling.

Preview:

Storybook:
image

Embedding the Diagram Editor through Web Components:
image

Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI review requested due to automatic review settings July 10, 2026 14:45
@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Deploy Preview for swf-editor ready!

Name Link
🔨 Latest commit 66eac31
🔍 Latest deploy log https://app.netlify.com/projects/swf-editor/deploys/6a510576716421000a0542b2
😎 Deploy Preview https://deploy-preview-261--swf-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses styling regressions when @serverlessworkflow/diagram-editor is embedded inside a Shadow DOM host (e.g., via Web Components), where Tailwind “base/preflight” CSS variables (like --tw-border-style) may not be present, causing Start/End nodes to lose expected border styling.

Changes:

  • Add explicit border-solid utilities to Start/End node (and related terminal marker) styles so borders render correctly without relying on Tailwind preflight variables.
  • Align the affected node styles to use gray palette utilities (gray-*) consistently.
  • Add a changeset to publish the fix as a patch release.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/serverless-workflow-diagram-editor/src/react-flow/diagram/Diagram.css Updates Tailwind @apply rules for terminal + Start/End nodes to explicitly set border-style: solid for Shadow DOM compatibility.
.changeset/fix-start-end-nodes-styling.md Declares a patch release for @serverlessworkflow/diagram-editor documenting the Shadow DOM styling fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

bug: Start/End node styles reference unavailable Tailwind CSS variables inside Shadow DOM

4 participants