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
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!