Skip to content

Commit 432f355

Browse files
authored
fix(Icon): adds back rest to icon component (#1898)
* fix: adds back rest to icon * fix: add rest to element
1 parent 6f083c8 commit 432f355

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sage-react/lib/Icon/Icon.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const Icon = ({
1515
icon,
1616
label,
1717
size,
18+
...rest
1819
}) => {
1920
const classNames = classnames(
2021
className,
@@ -57,7 +58,7 @@ export const Icon = ({
5758
};
5859

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

6364
const setBackgroundDimensions = () => {

0 commit comments

Comments
 (0)