Skip to content

Commit

Permalink
bugfix(ActionList.Item): Remove styles from enabled ActionList.It…
Browse files Browse the repository at this point in the history
…em (#5657)

* remove merge styles

* changeset
  • Loading branch information
langermank authored Feb 4, 2025
1 parent 14b840f commit de4fc48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/giant-lizards-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Remove style from sx
2 changes: 1 addition & 1 deletion packages/react/src/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export const Item = React.forwardRef<HTMLLIElement, ActionListItemProps>(
>
<LiBox
{...containerProps}
sx={merge<BetterSystemStyleObject>(styles, sxProp)}
sx={sxProp}
ref={listSemantics ? forwardedRef : null}
data-variant={variant === 'danger' ? variant : undefined}
data-active={active ? true : undefined}
Expand Down

0 comments on commit de4fc48

Please sign in to comment.