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

I'm trying to change the background color of ModalCover but it won't apply... #70

Open
downrightnerd opened this issue Dec 26, 2023 · 1 comment

Comments

@downrightnerd
Copy link

I changed css from ModalCover.svelte but it won't apply to my svelte page
even I deleted ModalCover.svelte and it still works...
What am I doing wrong?

@Hejtmus
Copy link
Owner

Hejtmus commented Dec 26, 2023

Hey,

When overriding built in modal cover class, did you set svelte-lightbox-overlay overriding style to global style block? Svelte has as default scoped style to component, and that could be cause of your problem if you placed you overriding class to wrong place.

In file ModalCover.svelte is element with class svelte-lightbox-overlay, that's the one you want to override.

Screenshot_20231226_121701_GitHub.png

(Sorry for mobile screenshot, but I'm on vacation)

Without more information I can't tell you what could be other cause of behavior you described, especially lib working, and displaying element in component, which is already deleted.

Could you please send me instructions how to reproduce you behavior, and snippet of code of your overriding css?

Best regards,
Filip Holčík.

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

No branches or pull requests

2 participants