Skip to content

Commit

Permalink
#69 Iconにwebkit-mask-imageを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaji255 committed Dec 9, 2023
1 parent 9daeb82 commit 01f1486
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/common/Icon.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const image = (await import(`../../assets/icons/${name}.svg`)).default
attrs.class,
]}
style={{
'-webkit-mask-image': `url(${JSON.stringify(image.src)})`,
maskImage: `url(${JSON.stringify(image.src)})`,
aspectRatio: `${image.width}/${image.height}`,
...attrs.style,
Expand Down

0 comments on commit 01f1486

Please sign in to comment.