nb-choices icon indicating copy to clipboard operation
nb-choices copied to clipboard

Firefox not display svg background-image

Open tonghia opened this issue 7 years ago • 2 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report  
[ ] Feature request
[ ] Documentation issue or request

Current behavior

background-image styles that use SVG are not displayed on Firefox.

Expected behavior

background-image styles that use SVG should be displayed on Firefox.

Minimal reproduction of the problem with instructions

Open: https://stackblitz.com/edit/nb-choices on Firefox. Select some item in Multiple select or Multiple select with checkbox. Selected items are not display remove icon.

Environment

Browser:

  • [ ] Chrome (desktop) version XX
  • [ ] Chrome (Android) version XX
  • [ ] Chrome (iOS) version XX
  • [ x] Firefox version 59.0.1 (64-bit) on Ubuntu, Window and Mac
  • [ ] Safari (desktop) version XX
  • [ ] Safari (iOS) version XX
  • [ ] IE version XX
  • [ ] Edge version XX

Others: I think the issue reason is here: https://stackoverflow.com/questions/30676125/svg-as-data-uri-triggers-xml-parsing-error-in-firefox

tonghia avatar Mar 22 '18 03:03 tonghia

Can you suggest a fix, please?

NetanelBasal avatar Mar 22 '18 05:03 NetanelBasal

Because in the SVG image we use colorIndex as a parameter so it is hard to continue with SVG. So at the moment, I use font-awesome to solve the issue, but I think you could use 'x' text to solve this issue.

Sorry for could not give you a better solution.

tonghia avatar Mar 22 '18 06:03 tonghia