jotaijs / jotai-devtools

A powerful toolkit to enhance your development experience with Jotai
https://jotai.org/docs/tools/devtools
MIT License
124 stars 29 forks source link

fix: mantine css leak #157

Open Elvincth opened 1 month ago

Elvincth commented 1 month ago

This pull request fixes the issue of CSS leakage from the Mantine component library by scoping its styles within a specific root element.

Details:

We used the postcss-prefix-selector plugin to add a prefix (#jotai-devtools-root) to all Mantine styles. This ensures that Mantine styles are contained and do not affect other parts of the application.

Result of generated index.css: image

Testing Instructions:

Test the fix in this repository: Jotai Devtool Test CSS Leak. Use pnpm link to link the dev package.

Thank you!

codesandbox-ci[bot] commented 1 month ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.