fix: restore black as a default color for svgs (#1947)

PR fixing setting of fill color to black when none is provided to the svg.
This commit is contained in:
Wojciech Lewicki
2023-01-03 21:15:09 +01:00
committed by GitHub
parent 1bac96f979
commit 60fcb0f28f

View File

@@ -20,6 +20,9 @@ export default function extractFill(
inherited.push('fill');
o.fill =
!fill && typeof fill !== 'number' ? defaultFill : extractBrush(fill);
} else {
// we want the default value of fill to be black to match the spec
o.fill = defaultFill;
}
if (fillOpacity != null) {
inherited.push('fillOpacity');