fix `<DropdowMenu.SubTrigger />` expanded state (#586)
* fix submenu trigger * Create early-ligers-act.md
This commit is contained in:
parent
1ce026c526
commit
447cce7c92
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@status-im/components": patch
|
||||
---
|
||||
|
||||
fix `<DropdowMenu.SubTrigger />` expanded state
|
|
@ -294,7 +294,10 @@ export const SubTrigger = (props: SubTriggerProps) => {
|
|||
const { icon, label, danger, ...itemProps } = props
|
||||
|
||||
return (
|
||||
<DropdownMenu.SubTrigger {...itemProps} className={itemStyles()}>
|
||||
<DropdownMenu.SubTrigger
|
||||
{...itemProps}
|
||||
className={itemStyles({ className: 'aria-expanded:bg-neutral-5' })}
|
||||
>
|
||||
{icon && (
|
||||
<span className={iconStyles({ danger })}>{cloneElement(icon)}</span>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue