Rotate added.
This commit is contained in:
parent
b846672213
commit
a3b826fa87
2 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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}>
|
||||
|
|
Loading…
Add table
Reference in a new issue