-
Notifications
You must be signed in to change notification settings - Fork 54
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
如何改变颜色 #84
Comments
参考 #72 (comment) 的方式引入 SVG 组件后,可通过 <span style={{ color: "blue" }}>
<SvgIcon
className="change-color"
fill="currentColor"
/>
</span> .change-color path{
fill: inherit;
} |
可以在组件上加个 class, 然后通过 color 来控制颜色 .custom-fill-svg {
fill: currentColor;
path, rect {
fill: currentColor;
}
} <Icon class="custom-fill-svg text-red-500" /> |
@Over-reaction 我们可以关闭这个问题吗? |
@revelt 好的谢谢🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用这个 我如何改变svg的颜色
The text was updated successfully, but these errors were encountered: