-
Notifications
You must be signed in to change notification settings - Fork 0
Show white filled check mark icon #89
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,9 +50,13 @@ function AiAssist (props) { | |
| return <Icon path={path} {...props} /> | ||
| } | ||
|
|
||
| function Check (props) { | ||
| const path = 'M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM7 11.4L3.6 8 5 6.6l2 2 4-4L12.4 6 7 11.4z' | ||
| return <Icon path={path} {...props} /> | ||
| function Check ({ color, className, path, viewBox, width, height, style, checkColor }) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest setting some defaults here like width, height and viewBox
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wont do it in this case because we do not set defaults for them in case of other icons. |
||
| return ( | ||
| <svg className={className} width={width} height={height} viewBox={viewBox} style={style} xmlns="http://www.w3.org/2000/svg"> | ||
| <path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" fill={color} /> | ||
| <path d="M7 11.4L3.6 8 5 6.6l2 2 4-4L12.4 6 7 11.4z" fill={checkColor || 'transparent'} /> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. allows me to control the color of the checkmark separately from fill color and background color. |
||
| </svg> | ||
| ) | ||
| } | ||
|
|
||
| function Checkmark (props) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.