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

[bug]: The style overrides by shadcn for sonner are not working. #3579

Open
2 tasks done
anson0370 opened this issue Apr 22, 2024 · 3 comments
Open
2 tasks done

[bug]: The style overrides by shadcn for sonner are not working. #3579

anson0370 opened this issue Apr 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@anson0370
Copy link

anson0370 commented Apr 22, 2024

Describe the bug

image

From the screenshot, it is evident that the styles added by shadcn have a lower priority than the inherent styles of sonner , and therefore cannot override them correctly.

Affected component/components

Sonner

How to reproduce

  1. install shadcn/ui
style: default
baseColor: gray
cssVariable: false
  1. install sonner by npx shadcn-ui@latest add sonner
  2. use sonner in my project

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

System: macOS 14.2.1
Browser: Arc Version 1.39.0 (48951) / Chromium Engine Version 124.0.6367.61

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@anson0370 anson0370 added the bug Something isn't working label Apr 22, 2024
@Phygon
Copy link

Phygon commented Apr 23, 2024

I think this issue started with the upgrade from sonner 1.4.3 to 1.4.41.
In my project, I'm sticking to sonner 1.4.3 because the style override still works in that version.

@christian1koch
Copy link

I tried using 1.4.3 and still same issue :/

@sitenativedev
Copy link

the problem is still in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants