Skip to content

Commit

Permalink
fix: ActionList.LinkItem duplicate classes (#5517)
Browse files Browse the repository at this point in the history
* remove className from menuItemProps

* Create little-shrimps-hug.md
  • Loading branch information
francinelucca committed Jan 9, 2025
1 parent ee16256 commit 8c1cff4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-shrimps-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

fix(ActionList): remove className from menuItemProps to prevent duplicate className bug
1 change: 0 additions & 1 deletion packages/react/src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
...(includeSelectionAttribute && {[itemSelectionAttribute]: selected}),
role: itemRole,
id: itemId,
className,
}

const containerProps = _PrivateItemWrapper
Expand Down

0 comments on commit 8c1cff4

Please sign in to comment.