-
Notifications
You must be signed in to change notification settings - Fork 114
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
stroke width not calculated when passed as a prop to CheckIcon #155
Comments
And all the icons don't work, even though the stroke value is read |
I figured something out. In order to use "strokeWidth" you must also use "stroke". "stroke" should be set to the color you want the icon to be, so it would override the "color" prop. I am also using the check icon, so naturally I don't want a rounded stroke. Unfortunately the check icon's path is already rounded, so even if you set strokeLinecap to "butt" and strokeLinejoin to "miter" the stroke will still be round. |
I might be late to the party and just want to add that if you're using tailwind you are going to need to do the following <HomeIcon className="text-sky-500" strokeWidth={1} stroke="currentColor"/> |
is there any way to use css variable color? |
I'm following the checkbox example in the documentation and added
strokeWeight
prop to<CheckIcon />
. However, no matter what the value the weight doesn't change. I'm looking at the code and passing in the prop should work. I haven't tested this with other icons but I'm going to guess I'll see similar results. Meaning, no change.The text was updated successfully, but these errors were encountered: