Skip to content

Commit

Permalink
fix(buttonicon): remove sdsIconProps from forwardedProps (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson authored Jan 18, 2023
1 parent e7d62b9 commit 0088113
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/ButtonIcon/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ const large = <ButtonIconSize extends keyof ButtonIconSizeToTypes>(
`;
};

const doNotForwardProps = ["on", "sdsSize", "sdsType", "sdsIcon"];
const doNotForwardProps = [
"on",
"sdsSize",
"sdsType",
"sdsIcon",
"sdsIconProps",
];

export const StyledButtonIcon = styled(IconButton, {
shouldForwardProp: (prop) => !doNotForwardProps.includes(prop as string),
Expand Down

0 comments on commit 0088113

Please sign in to comment.