Skip to content

Commit

Permalink
fix(Icon): adds back rest to icon component (#1898)
Browse files Browse the repository at this point in the history
* fix: adds back rest to icon

* fix: add rest to element
  • Loading branch information
pixelflips authored and kajabi-bot committed Jun 21, 2024
1 parent 57496a7 commit ebdef16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sage-react/lib/Icon/Icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const Icon = ({
icon,
label,
size,
...rest
}) => {
const classNames = classnames(
className,
Expand Down Expand Up @@ -57,7 +58,7 @@ export const Icon = ({
};

const renderIcon = () => (
<pds-icon name={icon} class={`t-sage--color-${color} ${classNames}`} size={sizeMapping[size]} />
<pds-icon name={icon} class={`t-sage--color-${color} ${classNames}`} size={sizeMapping[size]} {...rest} />
);

const setBackgroundDimensions = () => {
Expand Down

0 comments on commit ebdef16

Please sign in to comment.