Skip to content

Commit 0a858e7

Browse files
authored
Fix React warning (#3496)
1 parent b0c534f commit 0a858e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/icons/src/Icon.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ export const Icon = React.forwardRef(function Icon(
5858
{...rest}
5959
style={{
6060
maskImage: `url(${url})`,
61-
//@ts-ignore // For compatibility with older browsers
62-
'-webkit-mask-image': `url(${url})`,
61+
WebkitMaskImage: `url(${url})`,
6362
maskRepeat: 'no-repeat',
64-
'-webkit-mask-repeat': 'no-repeat',
63+
WebkitMaskRepeat: 'no-repeat',
6564
maskPosition: 'center',
66-
'-webkit-mask-position': 'center',
65+
WebkitMaskPosition: 'center',
6766
...(size ? { width: size, height: size } : {}),
6867
...rest.style,
6968
}}

0 commit comments

Comments
 (0)