Skip to content

Commit

Permalink
icon updates with correct fill attributes (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilsarwe authored Mar 10, 2023
1 parent 026e00d commit 83155a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions config/generation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
$iconProcessor = new IconProcessor($tempFilepath, $iconSet);
$iconProcessor
->optimize()
->postOptimizationAsString(function ($svgLine) {
return str_replace([
'fill="#231F20"',
'fill="#181616"',
], 'fill="currentColor"', $svgLine);
})
->save(filenameCallable: function ($filename){
return str_replace('ei-', '', $filename);
});
Expand Down
2 changes: 1 addition & 1 deletion resources/svg/sc-github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/svg/sc-linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 83155a7

Please sign in to comment.