Option to change style from being added to the HTML DOC head, instead append it to right before the react app "Root" in a dom shadow mode #21230
Labels
status: waiting for author
Issue with insufficient information
Summary 馃挕
MUI styles are bing added globally to the HTML Doc Top level head... that's fine if your app is a standalone application, but imagine you wanna ship your react app built with MUI as a widget to be used inside another website (potentially also using MUI), even when we wrap the app inside a custom element, MUI always appends the style tag to the top level head which ends up breaking the style of the hosting website.
Motivation 馃敠
Being able to build your app as a widget and ship it to million of the website with a single script where your app lives inside a shadow Dom element is a demand that will only keep growing.
The only alternative at the moment would be to embed the widget as an iframe which is not a perfect fit in many cases specially when we can leverage the browser's support for custom html element
The text was updated successfully, but these errors were encountered: