Add Shadow DOM support to Elsa Studio custom elements - #551
Closed
sfmskywalker with Copilot wants to merge 3 commits into
Closed
sfmskywalker with Copilot wants to merge 3 commits into
sfmskywalker with Copilot wants to merge 3 commits into
Conversation
…onfiguration Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Shadow DOM support to Elsa Studio
Add Shadow DOM support to Elsa Studio custom elements
Jun 22, 2025
sfmskywalker
force-pushed
the
main
branch
2 times, most recently
from
December 10, 2025 18:00
a948a9e to
0e54668
Compare
Member
|
Closing per Elsa 3 Crew Lead PR-triage policy: abandoned Copilot/bot draft (or Copilot PR on an obsolete base). Please reopen with a fresh PR against a current base if this work is still needed. |
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.
This PR implements comprehensive Shadow DOM support for Elsa Studio, enabling full style encapsulation when embedding components as custom elements. This addresses the need for safer integration in host applications with existing styles that could conflict with Elsa Studio's styling.
Key Features
ShadowDOM.Enabledsetting in appsettings.jsonImplementation
TypeScript/JavaScript
shadow-dom.tsmodule with core Shadow DOM functionsregisterBlazorCustomElementWithShadowDOMfor Shadow DOM-enabled custom elementsC# Integration
IDomAccessorinterface with Shadow DOM methodsDomJsInteropimplementation for JavaScript interopShadowDOMExtensionsclass for easy component registrationConfiguration
Program.csto conditionally register Shadow DOM componentsUsage
Available Shadow DOM Elements
elsa-backend-providerelsa-backend-provider-shadowelsa-workflow-definition-editorelsa-workflow-definition-editor-shadowelsa-workflow-instance-viewerelsa-workflow-instance-viewer-shadowelsa-workflow-instance-listelsa-workflow-instance-list-shadowelsa-workflow-definition-listelsa-workflow-definition-list-shadowBenefits
Documentation
docs/SHADOW_DOM.mdBrowser Support
Shadow DOM is supported in all modern browsers (Chrome 53+, Firefox 63+, Safari 10+, Edge 79+).
Fixes #550.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.