vue-sonner icon indicating copy to clipboard operation
vue-sonner copied to clipboard

Styles are influenced by global CSS

Open cernymatej opened this issue 1 year ago • 1 comments

I am using a CSS reset for all <div> elements, and it is affecting the styles of the toasts. This issue started occurring after the changes in the following commit were merged: https://github.com/xiaoluoboding/vue-sonner/commit/2a54869c53674c1d00e8939a587df8d7b0c73ba0

Reproduction: https://stackblitz.com/edit/github-kmsr3acy?file=app.vue,nuxt.config.ts,assets%2Freset.css

Wouldn't it be better to scope the styles to the component?

cernymatej avatar Dec 08 '24 15:12 cernymatej

Same here, had to disable global reset

Acetyld avatar Jan 10 '25 12:01 Acetyld