Skip to content

Commit

Permalink
[fix](@svelteui/core): broken Collapse animations with Svelte 4
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeMargarida committed Aug 20, 2023
1 parent 5b0028c commit abd1341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ A section that collapses with animation, occupying no space on the page.
<Box class={className} bind:element css={override} {use} {...$$restProps}>
{#if open}
{#if animateOpacity}
<div transition:fade={{ duration: transitionDuration }}>
<div transition:slide={slideTransitionOptions} use:forwardEvents>
<div transition:fade|global={{ duration: transitionDuration }}>
<div transition:slide|global={slideTransitionOptions} use:forwardEvents>
<slot />
</div>
</div>
{:else}
<div transition:slide={slideTransitionOptions} use:forwardEvents>
<div transition:slide|global={slideTransitionOptions} use:forwardEvents>
<slot />
</div>
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

<Story name="Menu" id="progressStory" args={{ value: 40 }} />

<Story name="With label" id="progressLabelStory" args={{ size: 'xl', value: 25, label: '25%' }} />

<Story name="Sections" id="progressSectionsStory">
<Progress
size="xl"
Expand Down

0 comments on commit abd1341

Please sign in to comment.