react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

Remove direct style insertions

Open jd-carroll opened this issue 3 years ago • 1 comments

Here is a proposal of what I think would be a good first step towards CSP compatible hot toast 😄

I'm not 100% on why casting a React.CSSProperties to goober.CSSAttribute is necessary (or how it even works), but it does seem to be...

May want to examine that a bit more, I suspect there is something I am missing that could be problematic.

However, if this does work, then the great news is that there are no breaking changes!


Fixes #138

jd-carroll avatar Jul 19 '22 17:07 jd-carroll

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-hot-toast ✅ Ready (Inspect) Visit Preview Aug 21, 2022 at 0:26AM (UTC)

vercel[bot] avatar Jul 19 '22 17:07 vercel[bot]