Closed khromov closed 7 months ago
Hey @khromov! if you're using classes, unfortunately, the :global
selector is necessary (I believe I saw an issue/PR on the Svelte repo for allowing it to be nested).
If you want the content to stay within the scope of the wrapper
you can set the portal
prop on the Drawer.Root
to null
.
Thanks a lot for the answer @huntabyte 🙇
Change Type
Addition
Proposed Changes
👋 What is the best way to style this without Tailwind? I've ported the demo to normal CSS, is there a way to avoid the
:global
selector?I tried prefixing with
.wrapper :global(.drawer-overlay)
to scope it down but the overlay renders outside the component tree you place it in, so it does not work as it's no longer a descendent of my wrapper.