Skip to content

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

@Neunerlei

Description

@Neunerlei

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions