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 not showing #1079

Closed
frankleng opened this issue Apr 2, 2015 · 23 comments
Closed

icons not showing #1079

frankleng opened this issue Apr 2, 2015 · 23 comments

Comments

@frankleng
Copy link

is it just me, or are icons are not working for me after the 0.96 update.?

@dhawken
Copy link

dhawken commented Apr 2, 2015

Just updated and mine seem fine.

@sentenza80
Copy link

It's working here

@jaimevent
Copy link

I had the same issue.
Solved it replacing at line ~781 of the file sass/components/_icons_material-design.scss the following:
instead of content: unicode($mdi-icon-value); write content: "\""+ $mdi-icon-value +"\""

@frankleng
Copy link
Author

@jaimevent thanks! that totally fixed it

@frankleng
Copy link
Author

@Dogfalo why is the line @jaimevent referenced to not in
https://github.com/Dogfalo/materialize/blob/master/sass/components/_icons-material-design.scss

want to do a PR to fix this issue, but not sure where to start.

@Dogfalo
Copy link
Owner

Dogfalo commented Apr 11, 2015

We updated the icon font. Not sure what the issue here is with the icons not displaying. What sass version are you using?

@frankleng
Copy link
Author

@Dogfalo thanks for the reply.
I'm using gulp-sass which pulls in node-sass 3.0.0-beta.4

I can build the latest materialize.scss and icons are showing. but they are all mismatched.

@Dogfalo
Copy link
Owner

Dogfalo commented Apr 11, 2015

You need to grab the updated font files as well
On Apr 11, 2015 7:29 PM, "Frank Leng" notifications@github.com wrote:

@Dogfalo https://github.com/Dogfalo thanks for the reply.
I'm using gulp-sass which pulls in node-sass 3.0.0-beta.4

I can build the latest materialize.scss and icons are showing. but they
are all mismatched.


Reply to this email directly or view it on GitHub
#1079 (comment)
.

@frankleng
Copy link
Author

ah of course! found a bug in my build script that didn't clean up the font.
Thanks!!!

@cascalheira
Copy link

I had the same problem with the current repository code. @jaimevent solution worked for me.
Using broccoli-sass on ember-cli.

@Chun-Yang
Copy link
Contributor

@jaimevent solved the bug.

@lsunsi
Copy link

lsunsi commented Jul 18, 2015

I'm using the Meteor version of Materialize and I'm icons are not showing up, only the icon text. Am I missing something?

@carlosperate
Copy link

@lsunsi
Copy link

lsunsi commented Jul 18, 2015

Entirely my bad.
Thanks

@thg303
Copy link

thg303 commented Aug 26, 2015

there's a problem with "Material-Design-Icons.woff" in the package, I've replaced it with the google version below, and it worked.
https://fonts.gstatic.com/s/materialicons/v7/2fcrYFNaTjcS6g4U3t-Y5ewrjPiaoEww8AihgqWRJAo.woff

@nitesh-bhargav
Copy link

@thg303 Thanks, it worked for me. @Dogfalo you need to update this in your V0.97 package.

@Dogfalo
Copy link
Owner

Dogfalo commented Sep 1, 2015

@nitesh-bhargav
Copy link

@Dogfalo unfortunately the problem in firefox is not solved by adding the icon link, we have to change the .woff file. Well the problem occurred after the .97 update.

@zkmark
Copy link

zkmark commented Sep 24, 2015

SOLUTION
paste in your style.css

Solucion
crea tu style.css y pegalo c:

@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('Material Icons'), local('MaterialIcons-Regular'), url(http://fonts.gstatic.com/s/materialicons/v7/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2');
}

.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
word-wrap: normal;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}

@andregoldstein
Copy link

@ztvMark 👍

@b-z
Copy link

b-z commented Dec 5, 2015

@ztvMark
I just downloaded the .woff2 file and it works!
Gracias!

sigfrid pushed a commit to sigfrid/metrolog that referenced this issue Dec 30, 2015
Use external link for material-design-icons. More details:
Dogfalo/materialize#1079
@varunwinni
Copy link

Checkbox, switch and radio button is not working when i implement in my project. If i am use in simple plain Html page then it works.

@adrian071088
Copy link

No me funciona los iconos cuando lo uso en local las fuentes

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