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

Can't have multiple classes using element queries #311

Open
andi-b opened this issue Dec 21, 2020 · 0 comments
Open

Can't have multiple classes using element queries #311

andi-b opened this issue Dec 21, 2020 · 0 comments

Comments

@andi-b
Copy link

andi-b commented Dec 21, 2020

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.

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