Skip to content

css rules not applying on different theme class #317

@ItsHaysus

Description

@ItsHaysus

So i have a set of css rules to handle light mode ( or default)

example:

.featured[min-width = 451px]{
font-size; 14px;
}

this works fine for the default theme, but then i have a css rule to handle dark mode, ex:

.darktheme .featured[min-width = 451px]{
font-size; 20px;
}

and now my styling doesnt work, i talked to some peers and apparently the JS logic to apply the rules might not work when there are non standard classes in front of the parent class. Is there any previous issues about this? can someone guide me on a way to fix it, i assume the issue lies in ElementQueries.JS under the "ApplyRules" function. I'd appreciate any help on fixing this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions