Skip to content

Commit

Permalink
fix <DropdowMenu.SubTrigger /> expanded state (#586)
Browse files Browse the repository at this point in the history
* fix submenu trigger

* Create early-ligers-act.md
  • Loading branch information
prichodko authored Sep 30, 2024
1 parent 1ce026c commit 447cce7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/early-ligers-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@status-im/components": patch
---

fix `<DropdowMenu.SubTrigger />` expanded state
5 changes: 4 additions & 1 deletion packages/components/src/dropdown-menu/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)}
Expand Down

0 comments on commit 447cce7

Please sign in to comment.