reactionic icon indicating copy to clipboard operation
reactionic copied to clipboard

Icons show up with just a border

Open J-Cat opened this issue 8 years ago • 3 comments

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

J-Cat avatar Oct 05 '16 14:10 J-Cat

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.

ghost avatar Nov 20 '16 01:11 ghost

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!

rbonslat avatar Dec 06 '16 20:12 rbonslat

@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.

ghost avatar Dec 06 '16 21:12 ghost