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

svg icons do not work in ie11 #42

Closed
mosstly-design opened this issue Jun 18, 2019 · 4 comments
Closed

svg icons do not work in ie11 #42

mosstly-design opened this issue Jun 18, 2019 · 4 comments

Comments

@mosstly-design
Copy link

The icons do not show up in IE11.

@jpsc
Copy link

jpsc commented Jun 21, 2019

Hello @mosstly-design,

It does not work ie11 has problems with svg sprites.
If you want it to work you should find a way to include in you project this https://github.com/jonathantneal/svg4everybody

Hope it helps.

@rensite
Copy link

rensite commented Jul 29, 2019

I have solved it using svg4everybody. A bit dirty, at least it works.

In nuxt.config.js:

plugins: [
    { src: '~plugins/svg4everybody.js', ssr: false }
]

~plugins/svg4everybody.js:

import svg4everybody from 'svg4everybody'
svg4everybody()

Shame on MS. We spending lot of hours just to make it work in IE (Edge).

@jpsc
Copy link

jpsc commented Jul 29, 2019

I'm glad it helped :)

@weifeiyue
Copy link

https://github.com/Keyamoon/svgxuse is better

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

5 participants