diff --git a/src/components/layers/LayerListItem.jsx b/src/components/layers/LayerListItem.jsx index 2d4a1f6..322c272 100644 --- a/src/components/layers/LayerListItem.jsx +++ b/src/components/layers/LayerListItem.jsx @@ -31,7 +31,9 @@ class IconAction extends React.Component { static propTypes = { action: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, - wdKey: PropTypes.string + wdKey: PropTypes.string, + classBlockName: PropTypes.string, + classBlockModifier: PropTypes.string, } renderIcon() { @@ -44,10 +46,21 @@ class IconAction extends React.Component { } render() { + const {classBlockName, classBlockModifier} = this.props; + + let classAdditions = ''; + if (classBlockName) { + classAdditions = `maputnik-layer-list-icon-action__${classBlockName}`; + + if (classBlockModifier) { + classAdditions += ` maputnik-layer-list-icon-action__${classBlockName}--${classBlockModifier}`; + } + } + return