Skip to content

Commit

Permalink
πŸ› Using Icon data should work properly if size is not defined (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz authored Jun 20, 2022
1 parent 1bbf061 commit 26600ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eds-core-react/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export type IconProps = {
} & SVGProps<SVGSVGElement>

export const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(
{ size = 24, color = 'currentColor', name, rotation, title, data, ...rest },
{ size, color = 'currentColor', name, rotation, title, data, ...rest },
ref,
) {
// eslint-disable-next-line prefer-const
Expand Down

0 comments on commit 26600ed

Please sign in to comment.