-
Notifications
You must be signed in to change notification settings - Fork 23
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
Default color 'CurrentColor' #32
Comments
Sadly that's only possible with CSS and would make this library more complex. |
I guess I don't see the need to add css. Just change That's what I was hoping for. I haven't tested it, but I think that should do the trick. |
And you can do it with css like this
but then it overrides the color prop and you can no longer pass prop as a color. I was hoping to be able to have it default to the currentColor but still be able to pass a color prop to the icon. |
As I said, it's only possible with CSS. |
I just don't get why currentColor wouldn't be supported in fill. I tested it locally and it seems to work great. I'll open a pull request so you can look at it. Thanks! :) |
Reopening this, see #33 |
Released in 4.0.0 |
Wouldn't it make more sense if the default color was 'CurrentColor' instead of black? That way it just defaults to the text color unless you pass a specific color.
The text was updated successfully, but these errors were encountered: