diff --git a/src/components/layers/LayerListItem.jsx b/src/components/layers/LayerListItem.jsx index 49ced9b..322c272 100644 --- a/src/components/layers/LayerListItem.jsx +++ b/src/components/layers/LayerListItem.jsx @@ -33,6 +33,7 @@ class IconAction extends React.Component { onClick: PropTypes.func.isRequired, wdKey: PropTypes.string, classBlockName: PropTypes.string, + classBlockModifier: PropTypes.string, } renderIcon() { @@ -45,9 +46,15 @@ class IconAction extends React.Component { } render() { + const {classBlockName, classBlockModifier} = this.props; + let classAdditions = ''; - if (this.props.classBlockName) { - classAdditions = `maputnik-layer-list-icon-action__${this.props.classBlockName}`; + if (classBlockName) { + classAdditions = `maputnik-layer-list-icon-action__${classBlockName}`; + + if (classBlockModifier) { + classAdditions += ` maputnik-layer-list-icon-action__${classBlockName}--${classBlockModifier}`; + } } return