Skip to content

Can't have multiple classes using element queries #311

@andi-b

Description

@andi-b

If I have a media query against one class and another media query against another class, if the element has both classes, it will only apply the second media query. I've created a JS fiddle to demonstrate:

https://jsfiddle.net/bambeck/L7fj4qyp/

I have a solution where by instead of passing an id (single class) to the function SetupInformation(element, id), I loop through the element's classes (this.element.classList). I'm unsure what the fallout could be but it seems to work.

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