Skip to content

Bug: Classes in pseudo-selectors are not transformed #132

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

Open
Neunerlei opened this issue Apr 17, 2025 · 0 comments
Open

Bug: Classes in pseudo-selectors are not transformed #132

Neunerlei opened this issue Apr 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Neunerlei
Copy link

Neunerlei commented Apr 17, 2025

Hello there,
after working with your library for a while I encountered a bug that is sometimes really hard to work around.

When your code contains pseudo-selectors:

<style module>
    .a {
        color: blue;
    }

    .b {
        color: green;
    }

    .b:not(.a) {
        color: yellow
    }

    .b:has(.a) {
        color: purple
    }
</style>

The classes in the pseudo selectors will not be transformed correctly.
This is the output: the base classes are correctly transformed, however the classes in the braces are ignored.

    .a-1HNhM4 {
        color: blue;
    }

    .b-3x38_A {
        color: green;
    }

    .b-3x38_A:not(.a) {
        color: yellow
    }

    .b-3x38_A:has(.a) {
        color: purple
    }

Thanks for any help :)

@micantoine micantoine added the bug Something isn't working label Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants