-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
broken style since 1.2.0 #89
Comments
Hi, can you guys provide a Stackblitz or Codesandbox playground? |
I use vue-sonnar in a vue, vuetify 3 app. Looks like the problem is the paddingthat is not applied properly because vuetify has this css:
this avoids the vue-sonnar padding to be applied:
=> https://github.com/xiaoluoboding/vue-sonner/blob/main/packages/styles.css#L92 But this is strange. I have only 1 project with this issue. All others are OK. |
@sadeghbarati I believe this issue may be related to the Vite environment. The CSS generated by vue-sonner is placed before the CSS generated by Vite, causing the site's CSS to overwrite the padding styles. Increasing the specificity by using |
Funny. In Production is fine. |
@sadeghbarati Steps to reproduce:
|
The problem is because of In order to make it work in Nuxt project without using Nuxt transpile option in nuxt.config we inject CSS in the head tag Which may cause problems in dev mode for some of the projects, We need time to investigate to see if it's possible to bundle vue files without transpile them into js/cjs |
v.1.5.0
v.1.2.1
The text was updated successfully, but these errors were encountered: