diff --git a/packages/unstyled/icon/src/createIcon/index.tsx b/packages/unstyled/icon/src/createIcon/index.tsx index 37799b7c8..17ffd7881 100644 --- a/packages/unstyled/icon/src/createIcon/index.tsx +++ b/packages/unstyled/icon/src/createIcon/index.tsx @@ -87,11 +87,6 @@ export function createIcon({ if (resolvedProps.size) { // sizeProps = { ...sizeProps, fontSize: resolvedProps?.size }; } - } else if (resolvedProps.size) { - sizeStyle = { - height: resolvedProps.size, - width: resolvedProps.size, - }; } return ( diff --git a/packages/unstyled/icon/src/createIcon/index.web.tsx b/packages/unstyled/icon/src/createIcon/index.web.tsx index 1b0e00e9c..9cb18cd88 100644 --- a/packages/unstyled/icon/src/createIcon/index.web.tsx +++ b/packages/unstyled/icon/src/createIcon/index.web.tsx @@ -86,11 +86,6 @@ export function createIcon({ if (resolvedProps.size) { // sizeProps = { ...sizeProps, fontSize: resolvedProps?.size }; } - } else if (resolvedProps.size) { - sizeStyle = { - height: resolvedProps.size, - width: resolvedProps.size, - }; } return (