Skip to content

Commit

Permalink
fix: add style to svg custom icon
Browse files Browse the repository at this point in the history
  • Loading branch information
matekissdev committed May 15, 2024
1 parent 31693a8 commit c53df2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sensenet/src/components/IconFromPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const IconFromPath = ({ path, options }: { path: string; options: IconOptions })
}

if (path.endsWith('.svg')) {
return <span dangerouslySetInnerHTML={{ __html: icon }} />
return <span dangerouslySetInnerHTML={{ __html: icon }} style={options.style} />
}

return <img src={icon} alt="icon" style={options.style} />
Expand Down

0 comments on commit c53df2e

Please sign in to comment.