Skip to content

Commit

Permalink
fix: incorrect usage of <slot> in accordion sample (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem authored Nov 30, 2023
1 parent a684409 commit 9c14c0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions svelte/demo/samples/accordion/CustomHeaders.route.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<Accordion bind:this={accordion}>
<AccordionItem>
<slot slot="itemStructure" let:state let:widget>
<svelte:fragment slot="itemStructure" let:state let:widget>
<div
class="{state.itemHeaderClass} accordion-button accordion-header custom-header justify-content-between"
class:collapsed={!state.itemVisible}
Expand Down Expand Up @@ -44,10 +44,10 @@
</div>
</div>
{/if}
</slot>
</svelte:fragment>
</AccordionItem>
<AccordionItem>
<slot slot="itemStructure" let:state let:widget>
<svelte:fragment slot="itemStructure" let:state let:widget>
<div
class="{state.itemHeaderClass} accordion-button accordion-header custom-header justify-content-between"
class:collapsed={!state.itemVisible}
Expand Down Expand Up @@ -85,10 +85,10 @@
</div>
</div>
{/if}
</slot>
</svelte:fragment>
</AccordionItem>
<AccordionItem itemDisabled={$thirdItemDisabled$}>
<slot slot="itemStructure" let:state let:widget>
<svelte:fragment slot="itemStructure" let:state let:widget>
<div
class="accordion-header {state.itemHeaderClass} accordion-button custom-header justify-content-between"
class:collapsed={!state.itemVisible}
Expand Down Expand Up @@ -120,6 +120,6 @@
</div>
</div>
{/if}
</slot>
</svelte:fragment>
</AccordionItem>
</Accordion>

0 comments on commit 9c14c0a

Please sign in to comment.