Rotate added.

This commit is contained in:
Minesh Mitha 2018-10-21 23:38:04 +01:00
parent b846672213
commit a3b826fa87
2 changed files with 11 additions and 1 deletions

View file

@ -20,5 +20,15 @@
height: 24px;
svg {
stroke: $brand-color;
&.plus-icon {
transform: rotate(0);
transition: all 0.4s ease;
}
}
&:hover {
.plus-icon {
transform: rotate(-180deg);
}
}
}

View file

@ -19,7 +19,7 @@ class VerticalCollapsibleSplit extends React.Component {
<div className='visible-content' data-name={this.props.name}>
{this.props.top}
<button className='collapse-button' onClick={this.collapse}>
{this.state.closed ? <Icon.MinusCircle /> : <Icon.PlusCircle /> }
{this.state.closed ? <Icon.MinusCircle /> : <Icon.PlusCircle className='plus-icon' /> }
</button>
</div>
<div className='collapse-content' data-name={this.props.name}>