Skip to content

Commit 8f2e6d9

Browse files
committed
Apply inline Details styles to inner container div
1 parent e016664 commit 8f2e6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Details.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</style>
7171

7272
<script>
73-
let { summary, children, ...rest } = $props();
73+
let { summary, children, style, ...rest } = $props();
7474
let details;
7575
</script>
7676

@@ -83,7 +83,7 @@
8383
{/if}
8484
</summary>
8585

86-
<div>
86+
<div {style}>
8787
{@render children?.()}
8888
</div>
8989

0 commit comments

Comments
 (0)