-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Icon component #26
base: main
Are you sure you want to change the base?
Conversation
width: ${({ size }: { size: number }) => size * 1.5}px; | ||
height: ${({ size }: { size: number }) => size * 1.5}px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should wrap those with px()
instead of the inline px string so it resizes accordingly.
} | ||
|
||
const iconElement = ( | ||
<IconSvg width={size} height={size} color={color} testID={testID} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here, I think we should do pxValue(size)
to resize accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad! I forgot about this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the missing px() and pxValue() wrappers - LGTM!
Addresses issue #10
This PR add a Icon component that can be used like this:
The icons were imported from the SDS.
Samples: