-
Notifications
You must be signed in to change notification settings - Fork 27
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
为什么为 svg 添加 display: block 的样式? #6
Comments
一方面是为了与小程序/RN中的表现一致,另一方面是因为内联样式和文字放在一起时对不齐,需要用flex对齐。如果能解决对齐问题,用 |
建议在iconfont.json配置文件中增加一个display配置,可以让使用者自己决定。 |
同需要 有没有加上display的打算哇 |
针对此情况已添加 pr @fwh1990 |
如果急需, 可使用 @grewer/react-iconfont-cli 代替 |
发现组件默认有
display: block
的样式,不是很清楚为什么。一般图标是当内联元素来使用的,现在
display: block
的样式,导致图标默认会占用一整行,使用的时候经常要重置样式成inline-block
The text was updated successfully, but these errors were encountered: