purescript-ocelot icon indicating copy to clipboard operation
purescript-ocelot copied to clipboard

Fix scoped CSS to work with arbitrary outer HTML, not just internal UI lib

Open davezuch opened this issue 6 years ago • 0 comments

@thomashoneyman reported on Jira:

I'm attempting to mount components (with their scoped CSS) directly into HTML that has an external stylesheet. Some of our styles now clash, like our resets specific to UI kit.

Expected behavior: I can include cn-tailwind.scoped.css in the Select documentation without it affecting any of the page styles. I can then build a typeahead using the Ocelot styles (working around the parent CSS needed).

Note: If this doesn't seem worth the effort we could just include a small custom stylesheet to write styles for the few example components we need.

davezuch avatar Jan 31 '19 21:01 davezuch