-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
square instead of some icons #1060
Comments
@giladgray you've seen that I believe? |
i mean this suggests fonts aren't loading, which is probably an environment issue, not a blueprint bug. @andrerfneves seeing this in development suggests the font files are not being served correctly. you'll have to dig into your build environment. i suggest google. @liesislukas perhaps your production build is doing some optimization that removes the font-family declaration? again, this speaks to an environment issue (not blueprint). |
@giladgray I resolved it. Importing issue. Thanks! |
@giladgray maybe, haven't gone that far to clear the fog around it. It's interesting, that some icons were working well and some not. I assume (Bad Practice™) if it would be in build step all icons wouldn't work. If this issue is found only in my environment probably it's on my side anyways. One more assumption🤘 |
@andrerfneves |
@colinbr96 it has been a long time since I touched the codebase for the application that used Blueprint, but I believe we decided to import the styles files directly. It's for another company I did work for so unfortunately I no longer have access to the codebase in order to check it out for you. |
@colinbr96 in 2.0, we moved icon fonts and styles to a separate |
@giladgray sorry maybe I'm missing something but docs states that
but select component still requires that Icon16 font to be loaded. |
@kalekseev good eye, the CSS API for the |
@giladgray can't we use svg for that https://jsfiddle.net/elky/t6kmLbzo/? Select is the only control that doesn't work without Icons16 (at least in my experience with v2.0). Loading the whole file for one icon seems too wasteful. |
@kalekseev it's not that simple as SVG icons are only available through React APIs (not pure CSS) since it requires a lookup in a huge JS object. there is currently no React component for the |
"@blueprintjs/core": "1.16.0", Chrome on OS X El Capitan
most of the icons do work, except some, e.g.:
pt-icon-small-tick (pt-icon-tick does work)
I get this instead of the icon:
It does work for the development machine, but when I build with production flag it fails to that square
I haven't changed font family, but Icons16 font was missing inside CSS after build step who knows why.
I've fixed icons with this line in my custom css file:
The text was updated successfully, but these errors were encountered: