purescript-ocelot
purescript-ocelot copied to clipboard
Fix scoped CSS to work with arbitrary outer HTML, not just internal UI lib
@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.cssin 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.