From 76c4fe4fbadfa7b1f2fe8735932f81a52d2e5b08 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Mon, 3 Jun 2024 18:09:17 +0700 Subject: [PATCH] fix(plasma-icons): replace stroke value to "currentColor" --- packages/plasma-icons/scripts/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/plasma-icons/scripts/utils.ts b/packages/plasma-icons/scripts/utils.ts index bdd6c4a439..426d074265 100644 --- a/packages/plasma-icons/scripts/utils.ts +++ b/packages/plasma-icons/scripts/utils.ts @@ -10,6 +10,8 @@ const removeFillOpacity = (source: string) => source.replace(/fill-opacity="(.*? const setFillCurrentColor = (source: string) => source.replace(/fill="(.*?)"/gm, 'fill="currentColor"'); +const setStrokeCurrentColor = (source: string) => source.replace(/stroke="(.*?)"/gm, 'stroke="currentColor"'); + const convertCSSProperty = (source: string) => source.replace( /([a-zA-Z-]*):(.*)/g, @@ -33,6 +35,7 @@ export const getIconAsset = (source: string, iconName: string) => { removeLineBreak, getSvgContent, setFillCurrentColor, + setStrokeCurrentColor, removeFillOpacity, convertInlineStyleToObject, camelizeAttributes,