Closed JimiHFord closed 5 years ago
Ok this is bizarre. If I have Chrome open on my retina display (built-in to the laptop), the spotlight doesn't alter the colors and the background of the tooltip renders as #fff. If Chrome is open on my external monitor (HP EliteDisplay E242), then I see the buggy behavior where the spotlight alters the colors.
Maybe mix-blend-mode
isn't the way to go 🤷♂️
I reproduced this in Safari as well.
Version 12.0 (14606.1.36.1.9)
Unable to reproduce in Firefox.
Version 62.0.3 (64-bit)
Just throwing this out there too - on one external monitor, the color of the spotlight is #EDEDED and on the other external monitor (identical hardware), the spotlight color is #EAEAEA / rgb(234,234,234)
.
Somewhere I read that the monitor's color settings have been known to affect the behavior of mix-blend-mode
for some browsers but I can't find that resource at the moment.
I think it's safe to say this isn't an issue with react-joyride
especially given some of the history behind mix-blend-mode.
Is this ticket sufficient for documenting this as a known issue? Somewhere I've seen @gilbarbara mention FAQ for this project but I haven't found what he was talking about.
@JimiHFord There's no FAQ currently. This issue might help others. Thanks
The spotlight preserves the original color of the content underneath it.
The spotlight alters the colors. I've found it affects all colors, but it is especially noticeable with white backgrounds when you compare it to the default "tooltip"-white.
Here is the bug in our app:
The spotlight background color that is rendered is also #EDEDED in the image above too.
In our app, we are using Joyride like so:
16.4.2
2.0.0-15
Google Chrome Version 70.0.3538.67 (Official Build) (64-bit)
macOS Mojave v10.14 MacBook Pro (15-inch, 2017) Processor: 2.8 GHz Intel Core i7 Graphics: Radeon Pro 555 2048 MB Intel HD Graphics 630 1536 MB
I tried experimenting with michalkow's fix but I still get the same behavior. My guess is that @michalkow would see this if he inspected the colors with ColorZilla.