Skip to content

Commit

Permalink
handle additional properties e.g. aria-hidden and pass to svg element -
Browse files Browse the repository at this point in the history
fixes #965
  • Loading branch information
RobBrazier committed Mar 17, 2023
1 parent c9ad762 commit 354de7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/components/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{inverse}
{pulse}
class={className}
{...$$restProps}
>
<slot>
{#if iconData}
Expand Down
1 change: 1 addition & 0 deletions src/lib/components/svg/Svg.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
role={label ? 'img' : 'presentation'}
viewBox={box}
{style}
{...$$restProps}
>
<slot />
</svg>
Expand Down

0 comments on commit 354de7c

Please sign in to comment.