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 are not rendered with Meteor and React. #59

Open
pociej opened this issue Dec 4, 2018 · 1 comment
Open

Icons are not rendered with Meteor and React. #59

pociej opened this issue Dec 4, 2018 · 1 comment

Comments

@pociej
Copy link

pociej commented Dec 4, 2018

No icons are rendered, even built-in like close icon for modals. Everything works fine when semantic ui is used with blaze ( https://github.com/Semantic-Org/Semantic-UI-Meteor#meteor-13-1 ).

Here is repo for reproduction : https://github.com/pociej/semantic-icons-problem

@MatthieuJnon
Copy link

I resolved this issue by adding

@font-face { font-family: 'Icons'; src: url("./fonts/icons.eot"); src: url("./fonts/icons.eot?#iefix") format('embedded-opentype'), url("./fonts/icons.woff2") format('woff2'), url("./fonts/icons.woff") format('woff'), url("./fonts/icons.ttf") format('truetype'), url("./fonts/icons.svg#icons") format('svg'); font-style: normal; font-weight: normal; font-variant: normal; text-decoration: inherit; text-transform: none; }

to my css file and this "postinstall": "cp -R node_modules/semantic-ui-css/themes/default/assets/fonts ./public/"
to package.json to make the fonts available in the public folder for the client

You can do the same thing to add the outline and brand icons

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