Icons not showing in IE

Created on 2 December 2019, almost 5 years ago
Updated 23 June 2023, over 1 year ago

Hey guys,

I've noticed that it can happen that svg icons are not shown in IE.
This is not a bug with this module per se, but an IE bug.
Ive tried simply using instead of but that did not help.
What helped for me personally was using this polyfill in my project:
https://github.com/Keyamoon/svgxuse

To be more precise: I searched a CDN and added it in my theme inside mytheme.libraries.yml file:

# svgxuse - make svg use work in IE - https://github.com/Keyamoon/svgxuse
svg-ie:
  js:
    https://cdn.jsdelivr.net/npm/svgxuse@1.2.6/svgxuse.min.js: { type: external, minified: true }

and then I included that library into my theme inside mytheme.info.yml file:

libraries:
  - .. (probably your js and css libraries here)
  - mytheme/svg-ie

After this, all svg icons are shown in my project, so I hope this helps you guys too if you are having IE svg issues.
I do not think this polyfill should be included in this library itself as it is a general IE issue and nothing specific ot this module.

πŸ› Bug report
Status

Closed: won't fix

Version

2.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium flyke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024