Skip to content

Commit

Permalink
Merge pull request #28 from UrbanInstitute/story-actions
Browse files Browse the repository at this point in the history
Expose actions in story for addon-actions
  • Loading branch information
mitchthorson authored Feb 19, 2024
2 parents 807d60c + 4d996ad commit b5f8ecf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/BasicDropdown/BasicDropdown.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</script>

<Template let:args>
<BasicDropdown {...args} />
<BasicDropdown {...args} on:change />
</Template>

<Story
Expand Down
3 changes: 3 additions & 0 deletions src/lib/DatawrapperIframe/DatawrapperIframe.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<Template let:args>
<DatawrapperIframe
{...args}
on:regionclick
on:regionmouseenter
on:regionmouseleave
on:regionclick={(e) => (test = e.detail.data.fips)}
on:regionmouseenter={(e) => (test = e.detail.data.fips)}
on:regionmouseleave={() => (test = "Hover over a region to change this text")}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ReturnTop/ReturnTop.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</script>

<Template let:args>
<ReturnTop args />
<ReturnTop args on:click on:keypress />
</Template>

<Story
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SocialShare/SocialShare.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</script>

<Template let:args>
<SocialShare {...args} />
<SocialShare {...args} on:click />
</Template>

<Story name="Default" />
Expand Down

0 comments on commit b5f8ecf

Please sign in to comment.