We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
组件的默认颜色属性值希望可以设置为“currentColor",或者在配置文件中提供默认颜色选项。 使用currentColor可以方便的利用当前字体的颜色作为图标颜色,这样就不用再单独给组件传颜色值
The text was updated successfully, but these errors were encountered:
更倾向于增加一个 defaultColor 的配置
Sorry, something went wrong.
目前我们的需求是想方便的写hover改变颜色,参考antd是使用的currentColor的方案,想要一个配置来开启这个方案
我如果提交一个pr,可以考虑合并吗
临时解决方案 :getIconColor 函数改为返回 undefine,然后在hover样式里写 fill:red; color:red;
这样图标和文字都是红色了
源码中的上述逻辑,建议将"#333333"改为"currentColor"。这样的效果是如果svg里fill有值的时候,会使用这个颜色当做默认值,如果没有fill的时候,使用currentColor,这样可以随着字体颜色而自动改变。
No branches or pull requests
组件的默认颜色属性值希望可以设置为“currentColor",或者在配置文件中提供默认颜色选项。
使用currentColor可以方便的利用当前字体的颜色作为图标颜色,这样就不用再单独给组件传颜色值
The text was updated successfully, but these errors were encountered: