Material icons rely on aligning the icon artwork within whitespace using an empty path, like this:
<path fill="none" d="M0 0h24v24H0z"/>
However, this library adds an underscore to all fills when it compiles a folder of icons: any fill becomes _fill. Which means that every Material icon appears in the DOM as a box filled with the currentColor.
This is not a game-breaker. A quick find/replace works just fine (which is better than manually setting an array of colours per icon).
Just wondering if there's a way to avoid underscoring fill on every compilation?
Material icons rely on aligning the icon artwork within whitespace using an empty path, like this:
However, this library adds an underscore to all fills when it compiles a folder of icons: any
fill
becomes_fill
. Which means that every Material icon appears in the DOM as a box filled with thecurrentColor
.This is not a game-breaker. A quick find/replace works just fine (which is better than manually setting an array of colours per icon).
Just wondering if there's a way to avoid underscoring
fill
on every compilation?