Tuesday, March 19, 2019

I'm struggling to get the Material Icons to work and I might just skip it for the time being.

To use these, you should be able to have a CSS style like so:

font-family: 'Material Icons';

 
 

It doesn't want to work in Internet Explorer without some doing. I think polyfills.ts needs this in it:

import 'hammerjs';

 
 

I tried to put...

"hammerjs": "^2.0.8",

 
 

...in package.json and rerun...

npm install

 
 

...but that was not the cure-all. The way to use this stuff is to have something like so:

<span>accessibility</span>

 
 

...styled as suggested above to show the "accessibility" icon in lieu of the word accessibility itself.

No comments:

Post a Comment