We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd2d93 commit dd009acCopy full SHA for dd009ac
1 file changed
index.js
@@ -216,12 +216,12 @@ class SvgUri extends Component{
216
}));
217
});
218
219
- const componentAtts = Array.from(attributes)
+ const componentAtts = Array.from(attributes)
220
.map(utils.camelCaseNodeName)
221
.map(utils.removePixelsFromNodeValue)
222
.filter(utils.getEnabledAttributes(enabledAttributes.concat(COMMON_ATTS)))
223
.reduce((acc, {nodeName, nodeValue}) => {
224
- acc[nodeName] = this.state.fill && nodeName === 'fill' ? this.state.fill : nodeValue
+ acc[nodeName] = (this.state.fill && nodeName === 'fill' && nodeValue !== 'none') ? this.state.fill : nodeValue
225
return acc
226
}, {});
227
Object.assign(componentAtts, styleAtts);
0 commit comments