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

dark mode button on demo website is not working #66

Open
sina-salahshour opened this issue Mar 8, 2024 · 4 comments
Open

dark mode button on demo website is not working #66

sina-salahshour opened this issue Mar 8, 2024 · 4 comments

Comments

@sina-salahshour
Copy link

https://svelte-french-toast.vercel.app/

examples section.

Dark mode button opens a light toast.

@kworkbee
Copy link

.wrapper {
left: 0;
right: 0;
display: flex;
position: absolute;
transform: translateY(calc(var(--offset, 16px) * var(--factor) * 1px));
}

It appears that the assignment of the background attribute is missing. @kbrgl

@kworkbee
Copy link

#48
According to this PR, it seems that the props property should be used, but it seems that it hasn't been released yet?

@sina-salahshour
Copy link
Author

sina-salahshour commented Mar 13, 2024

#48 According to this PR, it seems that the props property should be used, but it seems that it hasn't been released yet?

I have no clue but can it be because the package version hasn't changed since? maybe vercel cached the package on last version change (from 1.1 to 1.2) and used that on other deploys... because i tested locally and dark theme styles works fine.

@kworkbee
Copy link

kworkbee commented Mar 13, 2024

I checked again and it's working fine 😅

toast("TEST", {
          icon: "👏",
          style: "color: #fff; background-color: #333; font-size: 20px;",
        });

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