Fix the style of the chevron of outline menu items
This commit is contained in:
parent
ee357b341e
commit
c52fd15aca
1 changed files with 10 additions and 1 deletions
|
@ -101,9 +101,18 @@ const Head_Icon_WithDescendants = styled.span`
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
|
transition: transform 0.1s ease-out;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: rotate(-20deg);
|
||||||
|
}
|
||||||
|
|
||||||
${Container}.collapsed & {
|
${Container}.collapsed & {
|
||||||
transform: rotate(-90deg);
|
transform: rotate(-90deg);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: rotate(-70deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -157,8 +166,8 @@ const BaseItem: React.FC<{
|
||||||
<Head_Icon_WithDescendants
|
<Head_Icon_WithDescendants
|
||||||
onClick={(evt) => {
|
onClick={(evt) => {
|
||||||
evt.stopPropagation()
|
evt.stopPropagation()
|
||||||
|
evt.preventDefault()
|
||||||
setIsCollapsed?.(!collapsed)
|
setIsCollapsed?.(!collapsed)
|
||||||
select?.()
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ChevronDown />
|
<ChevronDown />
|
||||||
|
|
Loading…
Reference in a new issue