wobsoriano / vuetify-sonner

Stackable toast component for Vuetify.
https://vuetify-sonner.vercel.app
MIT License
121 stars 7 forks source link

color prop on "cardProps" don't work #20

Closed marcor2196 closed 10 months ago

marcor2196 commented 10 months ago

Hi, I tried to set the background color in this way:

toast("message", {
  cardProps: { color: 'red' }
});

but cause to this CSS rule:

.card-snackbar {
  background: rgb(var(--v-theme-surface-variant)) !important;
  color: rgb(var(--v-theme-on-surface-variant)) !important;
}

the CSS class "bg-red" it's overwritten.

wobsoriano commented 10 months ago

Thanks for reporting! Good catch