letsgetrandy / DICSS

Directly injected CSS
http://letsgetrandy.github.io/DICSS/
MIT License
1.35k stars 72 forks source link

position: sticky gets applied to everything when I use DICSS #69

Open edwardsCam opened 5 years ago

edwardsCam commented 5 years ago

I noticed a bug where as soon as I use DICSS.pullOut(), my DICSS output will get applied not just to the target element, but also to any nearby elements in the target's vicinity. I happen to have one element that uses position: sticky (it's a <legend>, btw), and this gets everywhere any time I use DICSS. I keep loading up my app to find that everything is sticky.

Are there techniques I could use to clean up my output? Or, barring that, perhaps there's a way to contain it so it doesn't accidentally get everywhere? It's very frustrating having to frantically clean this stuff up before my clients see it.

One user walked into my platform right as I finished deploying a new distribution, and they saw this whole sticky mess get applied everywhere before I had a chance to clean it up. Very embarrasing.