fix `<DropdowMenu.SubTrigger />` expanded state (#586)

* fix submenu trigger

* Create early-ligers-act.md
This commit is contained in:
pavel 2024-09-30 13:22:11 +02:00 committed by GitHub
parent 1ce026c526
commit 447cce7c92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@status-im/components": patch
---
fix `<DropdowMenu.SubTrigger />` expanded state

View File

@ -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>
)}