Skip to content

Commit dd009ac

Browse files
committed
control fill value == "none"
1 parent 6bd2d93 commit dd009ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ class SvgUri extends Component{
216216
}));
217217
});
218218

219-
const componentAtts = Array.from(attributes)
219+
const componentAtts = Array.from(attributes)
220220
.map(utils.camelCaseNodeName)
221221
.map(utils.removePixelsFromNodeValue)
222222
.filter(utils.getEnabledAttributes(enabledAttributes.concat(COMMON_ATTS)))
223223
.reduce((acc, {nodeName, nodeValue}) => {
224-
acc[nodeName] = this.state.fill && nodeName === 'fill' ? this.state.fill : nodeValue
224+
acc[nodeName] = (this.state.fill && nodeName === 'fill' && nodeValue !== 'none') ? this.state.fill : nodeValue
225225
return acc
226226
}, {});
227227
Object.assign(componentAtts, styleAtts);

0 commit comments

Comments
 (0)