Skip to content

Commit

Permalink
fix(icon): replace all black colors with current color
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroth authored and adrianschmidt committed Sep 10, 2019
1 parent 70a5b13 commit f5216ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global/icon-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class IconCache {

// Some of the icons in the Icons8 library have hard coded black color on some of the paths.
// In order to apply coloring with CSS, these have to be set to 'currentColor'
svgData = svgData.replace(/stroke:\s*#000000/g, 'stroke:currentColor');
svgData = svgData.replace(/#000000/g, 'currentColor');

if (!this.validSvg(svgData)) {
throw new Error('Invalid SVG');
Expand Down

0 comments on commit f5216ab

Please sign in to comment.