Skip to content
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

Icons show up with just a border #72

Open
J-Cat opened this issue Oct 5, 2016 · 3 comments
Open

Icons show up with just a border #72

J-Cat opened this issue Oct 5, 2016 · 3 comments

Comments

@J-Cat
Copy link

J-Cat commented Oct 5, 2016

I've started writing a custom app w/ react-ionic, and the icons all show up as just a "box". Also tested the kitchensink demo and had to update the app.scss as follows to get it to work at all.

@import "node_modules/reactionic/dist/scss/styles/reactionic";

Most styles etc seem to be working fine, but the icons just aren't working and I can't seem to figure out why.

I've also attached a screenshot of the issue.

Any help would be appreciated!

react-ionic-icon-issue

@ghost
Copy link

ghost commented Nov 20, 2016

Copy node_modules/reactionic/src/fonts into /public. Because

node_modules/reactionic/src/styles/_reactionic.scss

is loading

$ionicons-font-path: "/fonts";

not $ionicons-font-path: "../fonts";

as it should.

@rbonslat
Copy link

rbonslat commented Dec 6, 2016

I tried your solution but it still did not work. I copied the fonts folder and pasted it into the public folder under the app directory (reactionic-kitchensink-master\app\public\fonts). Did I miss something here? @alstephan

Thanks!

@ghost
Copy link

ghost commented Dec 6, 2016

@rbonslat check what your $ionicons-font-path is set to then place the fonts folder in that path.

For me it was loading

$ionicons-font-path: "/fonts";

so looking for the fonts folder in /public. I am using reactionic with Meteor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants