Skip to content

Commit

Permalink
fix(plasma-icons): replace stroke value to "currentColor"
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc committed Jun 4, 2024
1 parent 6a246e3 commit 76c4fe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plasma-icons/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -33,6 +35,7 @@ export const getIconAsset = (source: string, iconName: string) => {
removeLineBreak,
getSvgContent,
setFillCurrentColor,
setStrokeCurrentColor,
removeFillOpacity,
convertInlineStyleToObject,
camelizeAttributes,
Expand Down

0 comments on commit 76c4fe4

Please sign in to comment.