Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to change fill color of the modal ? #374

Closed
gaisinskii opened this issue May 15, 2019 · 3 comments
Closed

Is it possible to change fill color of the modal ? #374

gaisinskii opened this issue May 15, 2019 · 3 comments
Labels

Comments

@gaisinskii
Copy link

gaisinskii commented May 15, 2019

2xZ4UYL
Hello there!

I wonder if it possible to change the fill color of the modal overlay ?

By default it is fill="#FFFFFF", let's say I want to change it to red (#ff0000) but nothing happens. The overlay is just brighter but does not become red. Am I doing something wrong?

@hodossy
Copy link

hodossy commented May 16, 2019

Yes it is, you just need to set a fill on the last rect, not the mask:
image
There is more here on masks: http://tutorials.jenkov.com/svg/mask.html#using-fill-patterns-in-masks

@gaisinskii
Copy link
Author

@hodossy Thanks, man! It was a bit tricky for me as changing the CSS fill does not fix the issue. But adding an attribute via js works.

const tutorialOverlay = document.getElementById(
        'shepherdModalOverlayContainer',
      ).childNodes[1];
tutorialOverlay.setAttribute('fill', '#020b17');

@RobbieTheWagner
Copy link
Member

@andy-noir if you wanted to make this a configurable thing, and open a PR for it, I would love to support this more easily!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants