aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Icon.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Icon.js')
-rw-r--r--vnext/src/components/Icon.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnext/src/components/Icon.js b/vnext/src/components/Icon.js
index b4e8804c..743a007c 100644
--- a/vnext/src/components/Icon.js
+++ b/vnext/src/components/Icon.js
@@ -9,7 +9,7 @@ export default class Icon extends React.Component {
render() {
var size = this.props.size ? ' icon--' + this.props.size : '';
var className = this.props.className ? ' ' + this.props.className : '';
- var klass = 'icon icon--' + this.props.name + size + className;
+ var klass = 'icon' + (!this.props.noFill ? ' icon--' + this.props.name : '') + size + className;
var name = '#' + this.props.name + '-icon';
var useTag = '<use xlink:href=' + name + ' />';
@@ -37,5 +37,6 @@ export default class Icon extends React.Component {
Icon.propTypes = {
size: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
- className: PropTypes.string
+ className: PropTypes.string,
+ noFill: PropTypes.bool
}