Skip to content

Commit

Permalink
fix: Adjust icon generation to bring back themed icons
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jun 17, 2024
1 parent 0b805ea commit 50b9fb4
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 196 deletions.
2 changes: 1 addition & 1 deletion core/src/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const colorSvg = function(svg = '', color = '000') {
}

// add fill (fill is not present on black elements)
const fillRe = /<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;,])+)\/>/gmi
const fillRe = /<((circle|rect|path)((?!fill=)[a-z0-9 =".\-#():;,])+)\/>/gmi
svg = svg.replace(fillRe, '<$1 fill="#' + color + '"/>')

// replace any fill or stroke colors
Expand Down
Loading

0 comments on commit 50b9fb4

Please sign in to comment.