Skip to content

Commit bb03598

Browse files
committed
fix mask url should be encoded
1 parent f0c5587 commit bb03598

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/fluent-theme/src/components/icon/FluentIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function BaseFluentIcon(props: FluentIconProps) {
2626
const classNames = useStyles(styles);
2727

2828
const maskStyle = useMemo(
29-
() => (props.mask ? ({ '--webchat__fluent-icon--mask': `url('${props.mask}')` } as CSSProperties) : {}),
29+
() => (props.mask ? ({ '--webchat__fluent-icon--mask': `url('${encodeURI(props.mask)}')` } as CSSProperties) : {}),
3030
[props.mask]
3131
);
3232

0 commit comments

Comments
 (0)