🧩 Plasmo Developers�PD
🧩 Plasmo Developers3y ago
14 replies
Avi

Losing styles when injecting popup component in CSUI

No matter if the CSUI is
<script context="moudule" lang="ts">
  import Dashboard from "~popup.svelte";
</script>

<Dashboard />

or
<script lang="ts">
  import Dashboard from "~popup.svelte";
</script>

<Dashboard />

And the popup is:
<script lang="ts">
  // ...
</script>

<div class="wrapper">
  <!-- -->
</div>

<style lang="scss">
  .wrapper {
    width: 450px;
  }
</style>

When the popup loads from within the CSUI, .wrapper is styled as in the attached screenshot
I also tried renaming popup.svelte to Popup.svelte but didn't seem to solve it
image.png
Was this page helpful?