Skip to content

Commit 930de26

Browse files
authored
chore(svg): tweak warnning wording for unrecommended transparency value
1 parent f4ad697 commit 930de26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/svg/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const mathRound = Math.round;
1717
export function normalizeColor(color: string): { color: string; opacity: number; } {
1818
if (process.env.NODE_ENV !== 'production') {
1919
if (!color || color === 'none' || color === 'transparent') {
20-
console.warn(`'${color}' is an illegal value for transparency in SVG, please use 'rgba(r,g,b,0)' instead.`);
20+
console.warn(`'${color}' is not recommended value for transparency in SVG, please use 'rgba(r,g,b,0)' instead.`);
2121
}
2222
}
2323

@@ -197,4 +197,4 @@ export const encodeBase64 = (function () {
197197
}
198198
return null;
199199
};
200-
})();
200+
})();

0 commit comments

Comments
 (0)