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

Bad backdrop filter #329

Closed
Wollace-Buarque opened this issue Feb 6, 2024 · 10 comments
Closed

Bad backdrop filter #329

Wollace-Buarque opened this issue Feb 6, 2024 · 10 comments

Comments

@Wollace-Buarque
Copy link

Describe the feature / bug 📝:

As you can see only the middle toast is blurred because I put a tailwind class to try remove the blur:
image

image

If I don't have that tailwind class:

image

Now only the middle one isn't blurred, and what I want it's that every toast be legible without blur effect.

Steps to reproduce the bug 🔁:

Just run a toast.

@lucas-ellwanger
Copy link

I have the same issue here, currently on W11 23H2 and Chrome 121.0.6167.161.

@devmanbr
Copy link

up

@emilkowalski
Copy link
Owner

I don't follow, are the toasts blurry for you? There is no css added from sonner that might cause it. Which OS and browser are you using?

@devmanbr
Copy link

I don't follow, are the toasts blurry for you? There is no css added from sonner that might cause it. Which OS and browser are you using?

Check #334.

@Wollace-Buarque
Copy link
Author

I don't follow, are the toasts blurry for you? There is no css added from sonner that might cause it. Which OS and browser are you using?

I'm using Edge and Chrome on Windows 11.

I know this problem and it's because the transform property, take a look at this:

https://stackoverflow.com/questions/14677490/blurry-text-after-using-css-transform-scale-in-chrome
https://stackoverflow.com/questions/36787529/how-to-fix-blurry-image-on-transform-scale
https://stackoverflow.com/questions/31109299/css-transform-translate-50-50-makes-texts-blurry

@emilkowalski
Copy link
Owner

Is this fixed in this preview link? https://sonner-git-fix-blurry-appearance-emilkowalski-s-team.vercel.app/

@Wollace-Buarque
Copy link
Author

Is this fixed in this preview link? https://sonner-git-fix-blurry-appearance-emilkowalski-s-team.vercel.app/

image

I found another fix, setting the toastOptions={{ style: { willChange: 'unset' } }} fixed all blurs effect

@emilkowalski
Copy link
Owner

@Wollace-Buarque
Copy link
Author

Wollace-Buarque commented Feb 18, 2024

@emilkowalski
Copy link
Owner

Fixed in #336

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

4 participants