You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project where i use sonner in a web extension, but recently I moved the rendering to the shadow dom. Then I noticed that the toasts where not rendering as they were suppose to. After checking the source code and styles, it seems that the styles are loaded in the document's head and therefore in the shadow dom are not available.
Steps to reproduce the bug 馃攣:
Render toasts in shadow dom. Styles are missing from the components.
As a workaround i copied the styles to my codebase and i load them manually, but it would be a great if we have the styles available as a loadable file instead of loading them automatically to have more control over where we want to load them.
The text was updated successfully, but these errors were encountered:
STiXzoOR
changed the title
[Feature] Shadow DOM support
Shadow DOM support
Mar 4, 2024
Describe the feature / bug 馃摑:
I have a project where i use sonner in a web extension, but recently I moved the rendering to the shadow dom. Then I noticed that the toasts where not rendering as they were suppose to. After checking the source code and styles, it seems that the styles are loaded in the document's head and therefore in the shadow dom are not available.
Steps to reproduce the bug 馃攣:
Render toasts in shadow dom. Styles are missing from the components.
As a workaround i copied the styles to my codebase and i load them manually, but it would be a great if we have the styles available as a loadable file instead of loading them automatically to have more control over where we want to load them.
The text was updated successfully, but these errors were encountered: