Rich-Harris / pancake

Experimental charting library for Svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential rendering conflict with TailwindCSS

nileshtrivedi opened this issue · comments

commented

Check out this example for the Zoomable Treemap:

Initial render is fine but upon clicking, the whole chart whitens out.

It's exactly the same code as what's linked from the README -> Examples page, with only this line added:

<svelte:head>
	<script src="//cdn.tailwindcss.com/"></script>
</svelte:head>

I suspect TailwindCSS is setting some global styles which Pancake is not isolating/defending against.

commented

Never mind. Renaming the CSS classname contents to something else fixes the issue.