Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global CSS makes recombination with other Component Frameworks difficult #3867

Open
MatthiasRossbach opened this issue Feb 25, 2025 · 1 comment

Comments

@MatthiasRossbach
Copy link

:where(ul) {
padding-inline-start: variables.$db-spacing-fixed-md;

Just an example

We use primeng, e.g. for muliteselects and therefore we need to manually "disable" all global styles, because they spill over into these components.

@MatthiasRossbach
Copy link
Author

MatthiasRossbach commented Feb 25, 2025

Maybe problem is less, if we upgrade to newer version of primeng, where @layer is optional. Problem is, that :where looses against @layer, which is used by some component frameworks to make it easy to customize.

https://jsfiddle.net/mwau7jp2/2/

PS: If you consider using @layer as well (like primeng, tailwind...): We had problems with jsdom, because jsdom doesnt support layer yet and needs some hacks around

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant