Semantic-UI-CSS icon indicating copy to clipboard operation
Semantic-UI-CSS copied to clipboard

Icons are not rendered with Meteor and React.

Open pociej opened this issue 7 years ago • 1 comments

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

pociej avatar Dec 04 '18 14:12 pociej

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

MatthieuJnon avatar Feb 01 '19 18:02 MatthieuJnon