Closed cvincent-atmanco closed 5 years ago
If you're targeting body or html, where do you want the overlay to be displayed? I mean, you're selecting the whole page.
Targeting body is shown in the 'Basic' demo of Joyride. On all browsers (but IE & MS Edge), the step is centered in the page, and the overlay is displayed over everything (but the step). Are you saying that the IE & MS Edge behaviour is actually the desired behaviour and what I'm seeing in Chrome & others is a bug? If that's the case, I think it should overlay everything when using a centered step...
In the meantime for anyone also having this problem. A hack that fixed it for us it to add the following css.
.joyride-overlay:empty {
background-color: rgba(0, 0, 0, 0.5);
}
The :empty
selector makes sure that the background color is only set when there's no spotlight as child in the overlay.
Fixed in db10e365a496abfa287d1e60961cc9907bfc9a4f
If you want to get this issue fixed quickly, make sure to send a public URL or codesandbox example. https://2zpjporp4p.codesandbox.io/