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.
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![image](https://github.com/user-attachments/assets/952ba22d-ca7e-4ddd-a958-7aa2b9fb3e37)
index.css
:Testing Instructions:
Test the fix in this repository: Jotai Devtool Test CSS Leak. Use
pnpm link
to link the dev package.Thank you!