Skip to content

Commit 8c1cff4

Browse files
committedJan 9, 2025·
fix: ActionList.LinkItem duplicate classes (#5517)
* remove className from menuItemProps * Create little-shrimps-hug.md
1 parent ee16256 commit 8c1cff4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎.changeset/little-shrimps-hug.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
fix(ActionList): remove className from menuItemProps to prevent duplicate className bug

‎packages/react/src/ActionList/Item.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
335335
...(includeSelectionAttribute && {[itemSelectionAttribute]: selected}),
336336
role: itemRole,
337337
id: itemId,
338-
className,
339338
}
340339

341340
const containerProps = _PrivateItemWrapper

0 commit comments

Comments
 (0)
Please sign in to comment.