question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

imageColor not working

See original GitHub issue

Hello,

First of all tanks a lot for this beautiful, simple and powerful plugin.

I’ve tried to use the new defaults, as in example 5. I’ve also tried to directly use the new defaults directly in $.LoadingOverlay(action [,options]) without setting default options with $.LoadingOverlaySetup(options). In both case, inspecting the DOM show that the div.loadingoverlay_element has a fill: rgb(0, 0, 0) if i set the imageColor to "#000" or "#000000" or "black", but nothing happens.

Going further in multiple <svg> file, I found that the fill attribute is applied to the <svg> tag directly or to the <path> tag or to the <g> tag off the image itself (not the stroke(s)). So, if I set an imageClass to the image and target the tag that has the fill attribute and give it the desired fill color in a CSS file, everything goes as expected and the fill attribute has the defined color in CSS !

EDIT / UPDATE

If I do the following, I can control the fill and stroke(s) where ever they are in the .svg file : JS imageClass: "loadingoverlayimageclass" CSS

.loadingoverlayimageclass * {
    fill: red;
    stroke: black;
}

END EDIT / UPDATE

Hope that those information will help to tweak the plugin so the fill attribute will be applied to the exact tag.

Side Note : I’ll be using your plugin in the next update of my theme that is already on the WP theme repository 😉

Thanks again for your time and all your efforts.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gasparesgangacommented, Apr 4, 2018

I’ll release v2.1.0 today, please give me some time to update the documentation and you will find everything in there 😉

1reaction
gasparesgangacommented, Apr 3, 2018

Yep, that’s what I wrote: those SVGs have inline styles built-in. I will work-around that, don’t worry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UI Image color not updating correctly - Unity Forum
Hello, I'm using Unity UI Image to display a preview of my level. I change it's color from script to change it's color...
Read more >
Image Color is not proper when converted to PIL
I am converting tensor to pil image, but color is distorted. I have tried converting it to BGR but result is still same....
Read more >
[web]: Image color fill not working · Issue #56071 - GitHub
This is the basic use case we're trying to support: Image.asset("assets/image.png", color: Colors.red) Where image is pure white. Actual:
Read more >
ImageColor Module - Pillow (PIL Fork) 9.3.0 documentation
The ImageColor module contains color tables and converters from ... converts the RGB value to a greyscale value if the mode is not...
Read more >
Upload Image Color Problem - WordPress.org
Upload Image Color Problem. Resolved saragooph. (@saragooph). 2 years, 7 months ago. Normal color of “Upload Image” is white and when i hover...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found