Icons aren't rendered in IE11 on Windows 10
See original GitHub issueBug, feature request, or proposal:
When e.g. <md-icon>home</md-icon>
is used the icon isn’t rendered in Internet Explorer 11 (not edge mode) on Windows 10.
What is the expected behavior?
The icons should render.
What is the current behavior?
The icons aren’t rendered.
What are the steps to reproduce?
Go to https://material.angular.io/components/component/icon in IE11 (not edge mode) on Windows 10. The home icon isn’t rendered.
What is the use-case or motivation for changing an existing behavior?
Fix the bug.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Internet Explorer 11 (not edge mode) on Windows 10.
Is there anything else we should know?
The browser uses the following User-Agent header:
"User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/8.0; .NET4.0C; .NET4.0E)"
Doing curl -H "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/8.0; .NET4.0C; .NET4.0E)" https://fonts.googleapis.com/icon?family=Material+Icons
returns css without the font-feature-settings: 'liga'
rule. Requesting the same resource from other IE browsers seem to include dito. Manually adding that css rule makes the icons render.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
I found moving
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
to be the first tag in the<head>
solved this problem. Source: https://stackoverflow.com/a/28490514/350188@patrikbjork This definitely appears to be an issue with pulling it from google fonts. I had the same issue and it resolved simply by pulling the
material-design-icons
from npm instead and rollingnode_modules/material-design-icons/iconfont/material-icons.css
into my build.